summaryrefslogtreecommitdiff
path: root/boost/type_traits/nonesuch.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/type_traits/nonesuch.hpp')
-rw-r--r--boost/type_traits/nonesuch.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/boost/type_traits/nonesuch.hpp b/boost/type_traits/nonesuch.hpp
new file mode 100644
index 0000000000..85466b4352
--- /dev/null
+++ b/boost/type_traits/nonesuch.hpp
@@ -0,0 +1,35 @@
+/*
+Copyright 2017 Glen Joseph Fernandes
+<glenjofe -at- gmail.com>
+
+Distributed under the Boost Software License,
+Version 1.0. (See accompanying file LICENSE_1_0.txt
+or copy at http://www.boost.org/LICENSE_1_0.txt)
+*/
+
+#ifndef BOOST_TT_NONESUCH_HPP_INCLUDED
+#define BOOST_TT_NONESUCH_HPP_INCLUDED
+
+#include <boost/config.hpp>
+
+namespace boost {
+
+#if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
+struct nonesuch {
+ nonesuch() = delete;
+ ~nonesuch() = delete;
+ nonesuch(const nonesuch&) = delete;
+ void operator=(const nonesuch&) = delete;
+};
+#else
+class nonesuch {
+ nonesuch();
+ ~nonesuch();
+ nonesuch(const nonesuch&);
+ void operator=(const nonesuch&);
+};
+#endif
+
+} /* boost */
+
+#endif