blob: 11b2a826dadc5e8b23ac38490d9fea4f2495c1a8 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001// Copyright (C) 2010 Peder Holt
2// Use, modification and distribution is subject to the Boost Software
3// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
4
Jeff Thompson3d613fd2013-10-15 15:39:04 -07005#ifndef NDNBOOST_TYPEOF_UNSUPPORTED_HPP_INCLUDED
6#define NDNBOOST_TYPEOF_UNSUPPORTED_HPP_INCLUDED
Jeff Thompsona28eed82013-08-22 16:21:10 -07007
8namespace ndnboost { namespace type_of {
9 struct typeof_emulation_is_unsupported_on_this_compiler {};
10}}
11
Jeff Thompson3d613fd2013-10-15 15:39:04 -070012#define NDNBOOST_TYPEOF(expr) ndnboost::type_of::typeof_emulation_is_unsupported_on_this_compiler
13#define NDNBOOST_TYPEOF_TPL NDNBOOST_TYPEOF
Jeff Thompsona28eed82013-08-22 16:21:10 -070014
Jeff Thompson3d613fd2013-10-15 15:39:04 -070015#define NDNBOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr) \
Jeff Thompsona28eed82013-08-22 16:21:10 -070016struct name {\
Jeff Thompson3d613fd2013-10-15 15:39:04 -070017 typedef NDNBOOST_TYPEOF_TPL(expr) type;\
Jeff Thompsona28eed82013-08-22 16:21:10 -070018};
19
Jeff Thompson3d613fd2013-10-15 15:39:04 -070020#define NDNBOOST_TYPEOF_NESTED_TYPEDEF(name,expr) \
Jeff Thompsona28eed82013-08-22 16:21:10 -070021struct name {\
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022 typedef NDNBOOST_TYPEOF(expr) type;\
Jeff Thompsona28eed82013-08-22 16:21:10 -070023};
24
25
Jeff Thompson3d613fd2013-10-15 15:39:04 -070026#define NDNBOOST_TYPEOF_REGISTER_TYPE(x)
27#define NDNBOOST_TYPEOF_REGISTER_TEMPLATE(x, params)
Jeff Thompsona28eed82013-08-22 16:21:10 -070028
29#endif