5 Commits

Author SHA1 Message Date
Dmitry Marakasov
c576b6bc67 Fix build with broken libstdc++ 2014-12-25 17:39:43 +03:00
Dmitry Marakasov
bd81462de1 Untie optional from libc++
Style changes:
* Change namespace: std::experimental -> SDL2pp::cpp_optional
* Change _LIBCPP_BEGIN_NAMESPACE_STD to plain "namespace std {"
* Remove _LIBCPP_INLINE_VISIBILITY, _LIBCPP_EXCEPTION_ABI
* Change _NOEXEPT to noexcept
* Address all c++ standard library primitives via std::

Functional changes:
* Change _LIBCPP_ASSERT() to plain assert()
* Remove constexpr from functions which require c++1y relaxed constexpr
  requirements
* Change __is_nothrow_swappable condition for noexcept of swap(), to
  noexcept(std::swap) (idea taken from libstdc++)
* Remove constexpr from operator-> const to not require
  internal __has_operator_addressof
2014-12-25 17:26:52 +03:00
Dmitry Marakasov
f35c7c9cba Remove limit in c++ standard version 2014-12-25 15:48:34 +03:00
Dmitry Marakasov
2dca69320e Fix include guards 2014-12-25 15:44:46 +03:00
Dmitry Marakasov
82a91b3afe Import experimental/optional from libc++ 3.5, under MIT license 2014-12-25 15:43:24 +03:00