Fix ArrayWrapper test program: don't use std::string_literals to be C++11 conform. (#1703)

This commit is contained in:
Andreas Süßenbach 2023-10-18 09:55:20 +02:00 committed by GitHub
parent c77427babb
commit 5b6f6faf7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,6 @@ void f( std::string const & s )
std::cout << "<" << s << ">" << std::endl;
}
using namespace std::string_literals;
int main( int /*argc*/, char ** /*argv*/ )
{
vk::ArrayWrapper1D<char, 10> aw1( { 'f', 'o', 'o', 'b', 'a', 'h' } );
@ -35,7 +33,7 @@ int main( int /*argc*/, char ** /*argv*/ )
// s1 = aw1; // 'operator =' is ambiguous
vk::ArrayWrapper1D<char, 20> aw2( "foobah"s );
vk::ArrayWrapper1D<char, 20> aw2( "foobah" );
f( aw2 );
vk::ArrayWrapper1D<char, 5> aw3( { 'f', 'o', 'o', 'b', 'a', 'h' } );
@ -43,7 +41,7 @@ int main( int /*argc*/, char ** /*argv*/ )
assert( s3.length() == 5 );
std::cout << "<" << s3 << ">" << std::endl;
vk::ArrayWrapper1D<char, 5> aw4( "foobah"s );
vk::ArrayWrapper1D<char, 5> aw4( "foobah" );
std::string s4 = aw4;
assert( s4.length() == 5 );