forked from boostorg/config
Clear compiler warnings
[SVN r75185]
This commit is contained in:
1 parent
5ae1de8cec
commit
b899a529a5
16 files changed
+41
-7
No files matched your search
@@ -16,6 +16,8 @@
|
||||
|
||||
namespace boost_no_initializer_lists {
|
||||
|
||||
void quiet_warning(const std::initializer_list<int>&){}
|
||||
|
||||
void f(std::initializer_list<int>)
|
||||
{
|
||||
}
|
||||
@@ -25,6 +27,7 @@ int test()
|
||||
std::vector<std::string> v{"once", "upon", "a", "time"}; // See C++ std 8.5.4
|
||||
f( { 1, 2, 3, 4 } );
|
||||
std::initializer_list<int> x = { 1, 2 };
|
||||
quiet_warning(x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user