[libcxx] r281692 - Move _LIBCPP_INLINE_VISIBILITY to first declaration in <propagate_const>
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 15 19:16:23 PDT 2016
Author: ericwf
Date: Thu Sep 15 21:16:23 2016
New Revision: 281692
URL: http://llvm.org/viewvc/llvm-project?rev=281692&view=rev
Log:
Move _LIBCPP_INLINE_VISIBILITY to first declaration in <propagate_const>
Modified:
libcxx/trunk/include/experimental/propagate_const
Modified: libcxx/trunk/include/experimental/propagate_const
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/propagate_const?rev=281692&r1=281691&r2=281692&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/propagate_const (original)
+++ libcxx/trunk/include/experimental/propagate_const Thu Sep 15 21:16:23 2016
@@ -123,8 +123,14 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS_V2
template <class _Tp>
class propagate_const;
-template <class _Up> _LIBCPP_CONSTEXPR const _Up& get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
-template <class _Up> _LIBCPP_CONSTEXPR _Up& get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
+
+template <class _Up>
+inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
+const _Up& get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
+
+template <class _Up>
+inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
+_Up& get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
template <class _Tp>
class propagate_const
@@ -462,14 +468,12 @@ _LIBCPP_CONSTEXPR void swap(propagate_co
}
template <class _Tp>
-_LIBCPP_INLINE_VISIBILITY
_LIBCPP_CONSTEXPR const _Tp& get_underlying(const propagate_const<_Tp>& __pt) _NOEXCEPT
{
return __pt.__t_;
}
template <class _Tp>
-_LIBCPP_INLINE_VISIBILITY
_LIBCPP_CONSTEXPR _Tp& get_underlying(propagate_const<_Tp>& __pt) _NOEXCEPT
{
return __pt.__t_;
More information about the cfe-commits
mailing list