2
0
mirror of https://github.com/boostorg/typeof.git synced 2026-01-26 19:12:12 +00:00
Files
typeof/test/function_binding.cpp
Arkadiy Vertleyb 0f458a1ef2 *** empty log message ***
[SVN r34269]
2006-06-11 11:55:34 +00:00

11 lines
296 B
C++
Executable File

#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));