diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-04-02 00:40:41 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-04-02 00:40:41 +0000 |
commit | 788c9979d9fff3f0bc7419c1ae9c0f0ff7f51ce8 (patch) | |
tree | c1391c35d0986e13e42fcb31e4a9b8951a77f8f4 /libcxx/include/random | |
parent | 0527c6207af5de565bbd77e64f953bbc785cee8d (diff) | |
download | bcm5719-llvm-788c9979d9fff3f0bc7419c1ae9c0f0ff7f51ce8.tar.gz bcm5719-llvm-788c9979d9fff3f0bc7419c1ae9c0f0ff7f51ce8.zip |
This is an initial commit of constexpr support as proposed by Richard Smith. This by no means completes constexpr support. Indeed, it hardly scratches the surface. All it does is lay the foundation in <__config> and changes those few places in the library that are already using that foundation.
llvm-svn: 153856
Diffstat (limited to 'libcxx/include/random')
-rw-r--r-- | libcxx/include/random | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/random b/libcxx/include/random index 02ea9b63011..7099af5ea86 100644 --- a/libcxx/include/random +++ b/libcxx/include/random @@ -3374,9 +3374,9 @@ public: static const result_type _Max = 0xFFFFFFFFu; _LIBCPP_INLINE_VISIBILITY - static constexpr result_type min() { return _Min;} + static _LIBCPP_CONSTEXPR result_type min() { return _Min;} _LIBCPP_INLINE_VISIBILITY - static constexpr result_type max() { return _Max;} + static _LIBCPP_CONSTEXPR result_type max() { return _Max;} // constructors explicit random_device(const string& __token = "/dev/urandom"); |