Skip to content

Commit e0d2d58

Browse files
committed
Move _LIBCPP_INLINE_VISIBILITY to first declaration in <propagate_const>
llvm-svn: 281692
1 parent 1e03343 commit e0d2d58

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

libcxx/include/experimental/propagate_const

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS_V2
123123

124124
template <class _Tp>
125125
class propagate_const;
126-
template <class _Up> _LIBCPP_CONSTEXPR const _Up& get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
127-
template <class _Up> _LIBCPP_CONSTEXPR _Up& get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
126+
127+
template <class _Up>
128+
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
129+
const _Up& get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
130+
131+
template <class _Up>
132+
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
133+
_Up& get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
128134

129135
template <class _Tp>
130136
class propagate_const
@@ -462,14 +468,12 @@ _LIBCPP_CONSTEXPR void swap(propagate_const<_Tp>& __pc1, propagate_const<_Tp>& _
462468
}
463469

464470
template <class _Tp>
465-
_LIBCPP_INLINE_VISIBILITY
466471
_LIBCPP_CONSTEXPR const _Tp& get_underlying(const propagate_const<_Tp>& __pt) _NOEXCEPT
467472
{
468473
return __pt.__t_;
469474
}
470475

471476
template <class _Tp>
472-
_LIBCPP_INLINE_VISIBILITY
473477
_LIBCPP_CONSTEXPR _Tp& get_underlying(propagate_const<_Tp>& __pt) _NOEXCEPT
474478
{
475479
return __pt.__t_;

0 commit comments

Comments
 (0)