mirror of
https://github.com/boostorg/concept_check.git
synced 2025-09-26 08:51:04 +02:00
ignore unused variable in test (fix matrix warning)
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
#include <boost/concept/usage.hpp>
|
#include <boost/concept/usage.hpp>
|
||||||
|
#include <boost/core/ignore_unused.hpp>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct StringInitializable
|
struct StringInitializable
|
||||||
@@ -11,6 +12,7 @@ struct StringInitializable
|
|||||||
BOOST_CONCEPT_USAGE(StringInitializable)
|
BOOST_CONCEPT_USAGE(StringInitializable)
|
||||||
{
|
{
|
||||||
T x = "foo";
|
T x = "foo";
|
||||||
|
boost::ignore_unused(x);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user