mirror of
https://github.com/boostorg/typeof.git
synced 2026-01-22 05:42:43 +00:00
15 lines
471 B
C++
Executable File
15 lines
471 B
C++
Executable File
// Copyright (C) 2006 Arkadiy Vertleyb
|
|
// Use, modification and distribution is subject to the Boost Software
|
|
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/typeof/typeof.hpp>
|
|
#include <boost/type_traits/is_same.hpp>
|
|
#include <boost/type_traits/is_same.hpp>
|
|
#include <boost/static_assert.hpp>
|
|
|
|
int foo(double);
|
|
typedef int(&FREF)(double);
|
|
FREF fref = *foo;
|
|
|
|
BOOST_STATIC_ASSERT((boost::is_same<BOOST_TYPEOF(fref), int(double)>::value));
|