summaryrefslogtreecommitdiff
path: root/boost/units/base_unit.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/units/base_unit.hpp')
-rw-r--r--boost/units/base_unit.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/units/base_unit.hpp b/boost/units/base_unit.hpp
index 94fc416577..b66558a66b 100644
--- a/boost/units/base_unit.hpp
+++ b/boost/units/base_unit.hpp
@@ -104,21 +104,21 @@ class base_unit :
/// check_base_unit will trigger an error earlier
/// for compilers with less strict name lookup.
/// INTERNAL ONLY
- friend Derived*
+ friend BOOST_CONSTEXPR Derived*
check_double_register(const units::base_unit_ordinal<N>&)
{ return(0); }
/// Register this ordinal
/// INTERNAL ONLY
- friend detail::yes
+ friend BOOST_CONSTEXPR detail::yes
boost_units_unit_is_registered(const units::base_unit_ordinal<N>&)
- { detail::yes result; return(result); }
+ { return(detail::yes()); }
/// But make sure we can identify the current instantiation!
/// INTERNAL ONLY
- friend detail::yes
+ friend BOOST_CONSTEXPR detail::yes
boost_units_unit_is_registered(const units::base_unit_pair<Derived, N>&)
- { detail::yes result; return(result); }
+ { return(detail::yes()); }
};
} // namespace units