summaryrefslogtreecommitdiff
path: root/src/datatypes.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2016-01-23 22:16:14 +0000
committerChristian Pointner <equinox@anytun.org>2016-01-23 22:16:14 +0000
commit3535471723250a31b12a128c31160342787f9dde (patch)
treef76852b797820e0ddc4c3f8d842305a2eed10d32 /src/datatypes.h
parentmake prefix variable more standard compliant (diff)
fixed warning due to change of handling of exceptions inside descrutors since C++11
Diffstat (limited to 'src/datatypes.h')
-rw-r--r--src/datatypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datatypes.h b/src/datatypes.h
index bce14dd..85ae9c4 100644
--- a/src/datatypes.h
+++ b/src/datatypes.h
@@ -48,6 +48,13 @@
#include <boost/cstdint.hpp>
#include <boost/integer_traits.hpp>
+#include <boost/config.hpp>
+
+#ifndef BOOST_NO_NOEXCEPT
+#define NOEXCEPT(x) noexcept(x)
+#else
+#define NOEXCEPT(x)
+#endif
// should not be necessary on GCC, #ifdef + #include <stdint.h> should do the job; still required on MS VC++9, though.
using boost::int8_t;