Skip to content

Commit

Permalink
Fix ArrayWrapper test program: don't use std::string_literals to be C…
Browse files Browse the repository at this point in the history
…++11 conform. (#1703)
  • Loading branch information
asuessenbach authored Oct 18, 2023
1 parent c77427b commit 5b6f6fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ArrayWrapper/ArrayWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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' } );
Expand All @@ -35,15 +33,15 @@ 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' } );
std::string s3 = aw3;
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 );

Expand Down

0 comments on commit 5b6f6fa

Please sign in to comment.