summaryrefslogtreecommitdiffstats
path: root/libcxx/src/optional.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-12-09 14:49:17 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-12-09 14:49:17 +0000
commite61fba3b70949e2955f946b81a215c7e08d9aee6 (patch)
treec8ac956685f44e5643300ccbce2ec8d01b11aec5 /libcxx/src/optional.cpp
parentf57ac3bd224bf34b97f228d23454c03e6b4860cd (diff)
downloadbcm5719-llvm-e61fba3b70949e2955f946b81a215c7e08d9aee6.tar.gz
bcm5719-llvm-e61fba3b70949e2955f946b81a215c7e08d9aee6.zip
Add all the relational operators to std::experimental::optional. Also update bad_optional_access to match the Library Fundamentals draft standard. This is not all of the upcoming changes to optional, though.
llvm-svn: 223775
Diffstat (limited to 'libcxx/src/optional.cpp')
-rw-r--r--libcxx/src/optional.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libcxx/src/optional.cpp b/libcxx/src/optional.cpp
index b614d811612..8c5dd76d86d 100644
--- a/libcxx/src/optional.cpp
+++ b/libcxx/src/optional.cpp
@@ -9,8 +9,7 @@
#include "experimental/optional"
-namespace std // purposefully not using versioning namespace
-{ namespace experimental {
+_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL
#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
@@ -22,4 +21,4 @@ bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
#endif
-}} // std::experimental
+_LIBCPP_END_NAMESPACE_EXPERIMENTAL
OpenPOWER on IntegriCloud