mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Merge pull request #164 from anarthal/develop
Constructor from std::string_view is now constexpr
This commit is contained in:
@@ -30,6 +30,11 @@ template<class It> std::reverse_iterator<It> make_reverse_iterator( It it )
|
||||
return std::reverse_iterator<It>( it );
|
||||
}
|
||||
|
||||
// Verify that the constructor from std::string_view can be called in a constexpr context
|
||||
#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
|
||||
static_assert(!boost::core::string_view(std::string_view("abc", 3)).empty());
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user