removed warnings from tests

This commit is contained in:
Andrzej Krzemienski
2016-03-08 18:47:48 +01:00
parent a421444788
commit 0755ab7b4e
3 changed files with 20 additions and 16 deletions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2014, andrzej Krzemienski.
// Copyright (C) 2014, 2016 andrzej Krzemienski.
//
// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@ -10,6 +10,7 @@
// akrzemi1@gmail.com
//
#include "boost/optional.hpp"
#include "boost/core/ignore_unused.hpp"
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
//
@ -18,6 +19,7 @@
void optional_reference__test_no_init_from_Urefref()
{
boost::optional<const int&> opt = long(3);
boost::ignore_unused(opt);
}
#else