From eeac9fcfb723bc5ea98b3857536b7f938660d762 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 7 Jul 2012 17:04:52 +0000 Subject: Apply constexpr to . llvm-svn: 159899 --- libcxx/include/__bit_reference | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcxx/include/__bit_reference') diff --git a/libcxx/include/__bit_reference b/libcxx/include/__bit_reference index 21ce11f558d..b91532db2ec 100644 --- a/libcxx/include/__bit_reference +++ b/libcxx/include/__bit_reference @@ -131,13 +131,14 @@ public: __bit_const_reference(const __bit_reference<_Cp>& __x) _NOEXCEPT : __seg_(__x.__seg_), __mask_(__x.__mask_) {} - _LIBCPP_INLINE_VISIBILITY operator bool() const _NOEXCEPT + _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR operator bool() const _NOEXCEPT {return static_cast(*__seg_ & __mask_);} _LIBCPP_INLINE_VISIBILITY __bit_iterator<_Cp, true> operator&() const _NOEXCEPT {return __bit_iterator<_Cp, true>(__seg_, static_cast(__ctz(__mask_)));} private: _LIBCPP_INLINE_VISIBILITY + _LIBCPP_CONSTEXPR __bit_const_reference(__storage_pointer __s, __storage_type __m) _NOEXCEPT : __seg_(__s), __mask_(__m) {} -- cgit v1.2.3