mirror of
https://github.com/boostorg/typeof.git
synced 2025-11-17 16:09:27 +01:00
11 lines
134 B
C++
11 lines
134 B
C++
|
|
#include <boost/typeof/typeof.hpp>
|
||
|
|
|
||
|
|
struct foo
|
||
|
|
{
|
||
|
|
typedef BOOST_TYPEOF(1 + 2.5) type;
|
||
|
|
};
|
||
|
|
|
||
|
|
namespace
|
||
|
|
{
|
||
|
|
typedef foo::type type;
|
||
|
|
}
|