summaryrefslogtreecommitdiff
path: root/boost/type_traits/has_post_decrement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/type_traits/has_post_decrement.hpp')
-rw-r--r--boost/type_traits/has_post_decrement.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/boost/type_traits/has_post_decrement.hpp b/boost/type_traits/has_post_decrement.hpp
index e3f98fff1c..fc1c430a54 100644
--- a/boost/type_traits/has_post_decrement.hpp
+++ b/boost/type_traits/has_post_decrement.hpp
@@ -41,4 +41,25 @@
#undef BOOST_TT_TRAIT_OP
#undef BOOST_TT_FORBIDDEN_IF
+#if defined(BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION)
+
+namespace boost {
+
+ template <class R>
+ struct has_post_decrement<bool, R> : public false_type {};
+ template <>
+ struct has_post_decrement<bool, boost::binary_op_detail::dont_care> : public false_type {};
+ template <>
+ struct has_post_decrement<bool, void> : public false_type {};
+
+ template <class R>
+ struct has_post_decrement<bool&, R> : public false_type {};
+ template <>
+ struct has_post_decrement<bool&, boost::binary_op_detail::dont_care> : public false_type {};
+ template <>
+ struct has_post_decrement<bool&, void> : public false_type {};
+
+}
+
+#endif
#endif