forked from boostorg/optional
Drop dependency on Boost.StaticAssert
This commit is contained in:
@@ -1053,7 +1053,7 @@ class optional
|
||||
template<class T>
|
||||
class optional<T&&>
|
||||
{
|
||||
BOOST_STATIC_ASSERT_MSG(sizeof(T) == 0, "Optional rvalue references are illegal.");
|
||||
static_assert(sizeof(T) == 0, "Optional rvalue references are illegal.");
|
||||
} ;
|
||||
|
||||
} // namespace boost
|
||||
@@ -1163,7 +1163,7 @@ template<class CharType, class CharTrait>
|
||||
std::basic_ostream<CharType, CharTrait>&
|
||||
operator<<(std::basic_ostream<CharType, CharTrait>& os, optional_detail::optional_tag const&)
|
||||
{
|
||||
BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to output boost::optional, include header <boost/optional/optional_io.hpp>");
|
||||
static_assert(sizeof(CharType) == 0, "If you want to output boost::optional, include header <boost/optional/optional_io.hpp>");
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user