mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 12:07:21 +02:00
Added mock test for rvalue refs
This commit is contained in:
@ -20,6 +20,7 @@ import testing ;
|
|||||||
[ run optional_test.cpp ]
|
[ run optional_test.cpp ]
|
||||||
[ run ak_test_vc14_noexcept.cpp ]
|
[ run ak_test_vc14_noexcept.cpp ]
|
||||||
[ run ak_test_trait_noexcept_default.cpp ]
|
[ run ak_test_trait_noexcept_default.cpp ]
|
||||||
|
[ run ak_test_rvalue_references.cpp ]
|
||||||
[ run optional_test_swap.cpp ]
|
[ run optional_test_swap.cpp ]
|
||||||
[ run optional_test_conversions_from_U.cpp ]
|
[ run optional_test_conversions_from_U.cpp ]
|
||||||
[ run optional_test_tie.cpp ]
|
[ run optional_test_tie.cpp ]
|
||||||
|
31
test/ak_test_rvalue_references.cpp
Normal file
31
test/ak_test_rvalue_references.cpp
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
// Copyright (C) 2014 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
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
// See http://www.boost.org/lib/optional for documentation.
|
||||||
|
//
|
||||||
|
// You are welcome to contact the author at:
|
||||||
|
// akrzemi1@gmail.com
|
||||||
|
|
||||||
|
#include "boost/static_assert.hpp"
|
||||||
|
#include "boost/optional/optional.hpp"
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
using boost::optional;
|
||||||
|
|
||||||
|
#if defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||||
|
BOOST_STATIC_ASSERT_MSG(false, "absent rvalue refs");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user