diff --git a/include/boost/typeof/encode_decode.hpp b/include/boost/typeof/encode_decode.hpp index 67bf9e5..658fb77 100755 --- a/include/boost/typeof/encode_decode.hpp +++ b/include/boost/typeof/encode_decode.hpp @@ -8,7 +8,7 @@ #include #include -namespace boost{namespace type_of{namespace{ +namespace boost { namespace type_of { namespace { template struct encode_type_impl; diff --git a/include/boost/typeof/int_encoding.hpp b/include/boost/typeof/int_encoding.hpp index a708eaa..3078b69 100755 --- a/include/boost/typeof/int_encoding.hpp +++ b/include/boost/typeof/int_encoding.hpp @@ -8,7 +8,7 @@ #include #include -namespace boost{namespace type_of{ +namespace boost { namespace type_of { template struct get_unsigned { diff --git a/include/boost/typeof/modifiers.hpp b/include/boost/typeof/modifiers.hpp index 45c806d..6049abb 100755 --- a/include/boost/typeof/modifiers.hpp +++ b/include/boost/typeof/modifiers.hpp @@ -35,7 +35,7 @@ #define BOOST_TYPEOF_pointer_fun(T) T* #define BOOST_TYPEOF_reference_fun(T) T& -namespace boost{namespace type_of{namespace{ +namespace boost { namespace type_of { namespace { BOOST_TYPEOF_modifier_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_TYPEOF_const_fun); BOOST_TYPEOF_modifier_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_TYPEOF_volatile_fun); @@ -77,7 +77,7 @@ namespace boost{namespace type_of{namespace{ typedef typename d::iter iter;\ } -namespace boost{namespace type_of{namespace{ +namespace boost { namespace type_of { namespace { BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_EMPTY()); BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), const); diff --git a/include/boost/typeof/register_functions.hpp b/include/boost/typeof/register_functions.hpp index 0f749d8..fc53bfe 100755 --- a/include/boost/typeof/register_functions.hpp +++ b/include/boost/typeof/register_functions.hpp @@ -32,14 +32,11 @@ enum VOLATILE_CONST_MEM_FUN_ID = FUN_ID + 6 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY) }; -namespace boost -{ - namespace type_of - { - # define BOOST_PP_ITERATION_LIMITS (0, BOOST_TYPEOF_LIMIT_FUNCTION_ARITY) - # define BOOST_PP_FILENAME_1 - # include BOOST_PP_ITERATE() - } -} +namespace boost { namespace type_of { + + # define BOOST_PP_ITERATION_LIMITS (0, BOOST_TYPEOF_LIMIT_FUNCTION_ARITY) + # define BOOST_PP_FILENAME_1 + # include BOOST_PP_ITERATE() +}} #endif//BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED diff --git a/include/boost/typeof/template_encoding.hpp b/include/boost/typeof/template_encoding.hpp index d7b57c9..e3adc6e 100755 --- a/include/boost/typeof/template_encoding.hpp +++ b/include/boost/typeof/template_encoding.hpp @@ -125,7 +125,7 @@ BOOST_TYPEOF_TYPEDEF_DECODED_TEMPLATE_TYPE)(Name,Params) #define BOOST_TYPEOF_REGISTER_TEMPLATE_IMPL(Name, Params, Size, ID)\ - namespace boost{namespace type_of{namespace{\ + namespace boost { namespace type_of { namespace {\ BOOST_TYPEOF_REGISTER_TEMPLATE_TEMPLATE_IMPL(Name, Params, ID)\ template struct encode_template_impl; - template struct decode_template_impl; - } - template struct encode_template - : encode_template_impl - {}; +namespace boost { namespace type_of { - template struct decode_template - : decode_template_impl - {}; + namespace + { + template struct encode_template_impl; + template struct decode_template_impl; } -} + + template struct encode_template + : encode_template_impl + {}; + + template struct decode_template + : decode_template_impl + {}; + +}} //////////////////////////// // move to template_encoding.hpp? diff --git a/include/boost/typeof/type_encoding.hpp b/include/boost/typeof/type_encoding.hpp index 07e69f6..76455a9 100755 --- a/include/boost/typeof/type_encoding.hpp +++ b/include/boost/typeof/type_encoding.hpp @@ -17,7 +17,7 @@ }; #define BOOST_TYPEOF_REGISTER_TYPE(Type) \ - namespace boost{namespace type_of{namespace{ \ + namespace boost { namespace type_of { namespace { \ BOOST_TYPEOF_REGISTER_TYPE_IMPL(Type, BOOST_TYPEOF_UNIQUE_ID()) \ }}} diff --git a/include/boost/typeof/vector.hpp b/include/boost/typeof/vector.hpp index 4731958..96e3ce6 100755 --- a/include/boost/typeof/vector.hpp +++ b/include/boost/typeof/vector.hpp @@ -28,7 +28,7 @@ typedef v_iter > next;\ }; -namespace boost{ namespace type_of{ +namespace boost { namespace type_of { template struct v_iter; // not defined BOOST_PP_REPEAT(BOOST_TYPEOF_LIMIT_SIZE, BOOST_TYPEOF_spec_iter, ~) @@ -53,7 +53,7 @@ namespace boost{ namespace type_of{ BOOST_PP_REPEAT_FROM_TO(n, BOOST_TYPEOF_LIMIT_SIZE, BOOST_TYPEOF_typedef_fake_item, ~)\ }; -namespace boost{ namespace type_of{ +namespace boost { namespace type_of { BOOST_PP_REPEAT(BOOST_PP_INC(BOOST_TYPEOF_LIMIT_SIZE), BOOST_TYPEOF_define_vector, ~) }} @@ -73,7 +73,7 @@ namespace boost{ namespace type_of{ > type;\ }; -namespace boost{ namespace type_of{ +namespace boost { namespace type_of { template struct push_back; // not defined BOOST_PP_REPEAT(BOOST_TYPEOF_LIMIT_SIZE, BOOST_TYPEOF_spec_push_back, ~)