summaryrefslogtreecommitdiff
path: root/boost/align/detail/integral_constant.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/align/detail/integral_constant.hpp')
-rw-r--r--boost/align/detail/integral_constant.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/boost/align/detail/integral_constant.hpp b/boost/align/detail/integral_constant.hpp
index 3f8bf0a8d9..1ad67e330f 100644
--- a/boost/align/detail/integral_constant.hpp
+++ b/boost/align/detail/integral_constant.hpp
@@ -1,5 +1,5 @@
/*
-(c) 2014-2015 Glen Joseph Fernandes
+(c) 2014-2016 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
@@ -27,11 +27,15 @@ struct integral_constant {
typedef T value_type;
typedef integral_constant type;
- BOOST_CONSTEXPR operator value_type() const {
+ BOOST_CONSTEXPR operator value_type() const BOOST_NOEXCEPT {
return Value;
}
- static BOOST_CONSTEXPR_OR_CONST T value = Value;
+ BOOST_CONSTEXPR value_type operator()() const BOOST_NOEXCEPT {
+ return Value;
+ }
+
+ BOOST_STATIC_CONSTEXPR T value = Value;
};
#endif