mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Avoid unused function warnings in tests
This commit is contained in:
parent
57c000f8eb
commit
a1a223901a
1 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ namespace
|
|||
{
|
||||
struct streamable
|
||||
{};
|
||||
std::ostream& operator<<( std::ostream& s, const streamable& )
|
||||
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const streamable& )
|
||||
{
|
||||
BOOST_FAIL( "should not have been called" );
|
||||
return s;
|
||||
|
|
@ -131,7 +131,7 @@ namespace
|
|||
{
|
||||
struct mock_streamable
|
||||
{};
|
||||
std::ostream& operator<<( std::ostream& s, const mock_streamable& )
|
||||
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const mock_streamable& )
|
||||
{
|
||||
BOOST_FAIL( "should not have been called" );
|
||||
return s;
|
||||
|
|
@ -271,7 +271,7 @@ namespace
|
|||
operator streamable() const;
|
||||
template< typename T > operator T() const;
|
||||
};
|
||||
std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_streamable& )
|
||||
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_streamable& )
|
||||
{
|
||||
BOOST_FAIL( "should not have been called" );
|
||||
return s;
|
||||
|
|
@ -297,7 +297,7 @@ namespace
|
|||
operator streamable() const;
|
||||
template< typename T > operator T() const;
|
||||
};
|
||||
std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_mock_streamable& )
|
||||
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_mock_streamable& )
|
||||
{
|
||||
BOOST_FAIL( "should not have been called" );
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue