Ignore warnings in some tests; fix ambiguity in ArrayWrapper test (#1712)

This commit is contained in:
Andreas Süßenbach
2023-10-24 18:27:35 +02:00
committed by GitHub
parent 9c15a1e1ef
commit de5821703f
4 changed files with 22 additions and 7 deletions

View File

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