Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
b1ceb72e
"tools/git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "771036ceed0d02002b31c3decd36a6bab25601e1"
Commit
b1ceb72e
authored
Sep 05, 2014
by
Davis King
Browse files
merged
parents
5ba192b7
3b67620c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
31 deletions
+16
-31
dlib/noncopyable.h
dlib/noncopyable.h
+16
-31
No files found.
dlib/noncopyable.h
View file @
b1ceb72e
...
@@ -7,40 +7,25 @@
...
@@ -7,40 +7,25 @@
#ifndef DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#ifndef DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#define DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#define DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#ifndef BOOST_NONCOPYABLE_HPP_INCLUDED
#define BOOST_NONCOPYABLE_HPP_INCLUDED
namespace
boost
{
namespace
noncopyable_
// protection from unintended ADL
{
class
noncopyable
{
/*!
This class makes it easier to declare a class as non-copyable.
If you want to make an object that can't be copied just inherit
from this object.
!*/
protected:
noncopyable
()
{}
~
noncopyable
()
{}
private:
// emphasize the following members are private
noncopyable
(
const
noncopyable
&
);
const
noncopyable
&
operator
=
(
const
noncopyable
&
);
};
}
typedef
noncopyable_
::
noncopyable
noncopyable
;
}
// namespace boost
#endif // BOOST_NONCOPYABLE_HPP_INCLUDED
namespace
dlib
namespace
dlib
{
{
using
boost
::
noncopyable
;
class
noncopyable
{
/*!
This class makes it easier to declare a class as non-copyable.
If you want to make an object that can't be copied just inherit
from this object.
!*/
protected:
noncopyable
()
{}
~
noncopyable
()
{}
private:
// emphasize the following members are private
noncopyable
(
const
noncopyable
&
);
const
noncopyable
&
operator
=
(
const
noncopyable
&
);
};
}
}
#endif // DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#endif // DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment