Mark namespaces for user defined literals as 'inline'

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@192047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-10-05 21:18:32 +00:00
parent 1d927e38d1
commit 8d9dd7a968
8 changed files with 173 additions and 12 deletions

View File

@@ -942,12 +942,9 @@ typedef steady_clock high_resolution_clock;
} // chrono
#if _LIBCPP_STD_VER > 11
// Literal suffixes for chrono types
// inline // Deviation from N3690.
// We believe the inline to be a defect and have submitted an LWG issue.
// An LWG issue number has not yet been assigned.
namespace literals
#if _LIBCPP_STD_VER > 11
// Suffixes for duration literals [time.duration.literals]
inline namespace literals
{
inline namespace chrono_literals
{
@@ -1018,6 +1015,11 @@ namespace literals
}
}}
namespace chrono { // hoist the literals into namespace std::chrono
using namespace literals::chrono_literals;
}
#endif
_LIBCPP_END_NAMESPACE_STD