mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-09-18 19:26:34 -04:00
27 lines
679 B
C++
27 lines
679 B
C++
// (C) Copyright Andrey Semashev 2013
|
|
|
|
// Use, modification and distribution are 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/libs/config for more information.
|
|
|
|
// MACRO: BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
|
// TITLE: C++11 trailing function result types syntax.
|
|
// DESCRIPTION: The compiler does not support the new C++11 function result types specification syntax.
|
|
|
|
namespace boost_no_cxx11_trailing_result_types {
|
|
|
|
template< typename T >
|
|
auto foo(T const& t) -> T
|
|
{
|
|
return t;
|
|
}
|
|
|
|
int test()
|
|
{
|
|
return foo(0);
|
|
}
|
|
|
|
}
|