diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-03-28 15:46:49 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-03-28 15:46:49 (GMT) |
commit | f53a1ef582494458301b97bf6e546be52d7ff7e8 (patch) | |
tree | 7571b5cbcbd8a8f1dd1c966c9045b6cb69f0e295 /3rdParty/Boost/src/boost/typeof/encode_decode.hpp | |
parent | 638345680d72ca6acaf123f2c8c1c391f696e371 (diff) | |
download | swift-contrib-f53a1ef582494458301b97bf6e546be52d7ff7e8.zip swift-contrib-f53a1ef582494458301b97bf6e546be52d7ff7e8.tar.bz2 |
Moving submodule contents back.
Diffstat (limited to '3rdParty/Boost/src/boost/typeof/encode_decode.hpp')
-rw-r--r-- | 3rdParty/Boost/src/boost/typeof/encode_decode.hpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/3rdParty/Boost/src/boost/typeof/encode_decode.hpp b/3rdParty/Boost/src/boost/typeof/encode_decode.hpp new file mode 100644 index 0000000..5a13fd5 --- /dev/null +++ b/3rdParty/Boost/src/boost/typeof/encode_decode.hpp @@ -0,0 +1,61 @@ +// Copyright (C) 2004 Arkadiy Vertleyb + +// Distributed under 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) + +// boostinspect:nounnamed + +#ifndef BOOST_TYPEOF_ENCODE_DECODE_HPP_INCLUDED +#define BOOST_TYPEOF_ENCODE_DECODE_HPP_INCLUDED + +#include <boost/mpl/deref.hpp> +#include <boost/mpl/next.hpp> + +#ifndef BOOST_TYPEOF_SUPPRESS_UNNAMED_NAMESPACE + +# define BOOST_TYPEOF_BEGIN_ENCODE_NS namespace { namespace boost_typeof { +# define BOOST_TYPEOF_END_ENCODE_NS }} +# define BOOST_TYPEOF_ENCODE_NS_QUALIFIER boost_typeof + +#else + +# define BOOST_TYPEOF_BEGIN_ENCODE_NS namespace boost { namespace type_of { +# define BOOST_TYPEOF_END_ENCODE_NS }} +# define BOOST_TYPEOF_ENCODE_NS_QUALIFIER boost::type_of + +# define BOOST_TYPEOF_TEXT "unnamed namespace is off" +# include <boost/typeof/message.hpp> + +#endif + +BOOST_TYPEOF_BEGIN_ENCODE_NS + +template<class V, class Type_Not_Registered_With_Typeof_System> +struct encode_type_impl; + +template<class T, class Iter> +struct decode_type_impl +{ + typedef int type; // MSVC ETI workaround +}; + +template<class T> +struct decode_nested_template_helper_impl; + +BOOST_TYPEOF_END_ENCODE_NS + +namespace boost { namespace type_of { + + template<class V, class T> + struct encode_type : BOOST_TYPEOF_ENCODE_NS_QUALIFIER::encode_type_impl<V, T> + {}; + + template<class Iter> + struct decode_type : BOOST_TYPEOF_ENCODE_NS_QUALIFIER::decode_type_impl< + typename Iter::type, + typename Iter::next + > + {}; +}} + +#endif//BOOST_TYPEOF_ENCODE_DECODE_HPP_INCLUDED |