mirror of
https://github.com/boostorg/optional.git
synced 2025-07-15 21:32:17 +02:00
removed warnings from tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user