X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Ftypeof%2Fmsvc%2Ftypeof_impl.hpp;h=87bf3d1ce3832e862d0130dbc0ad004b4bec977e;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=3071efb7497aca03de58b0a0af6092d5bf54805d;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/boost/typeof/msvc/typeof_impl.hpp b/ceph/src/boost/boost/typeof/msvc/typeof_impl.hpp index 3071efb74..87bf3d1ce 100644 --- a/ceph/src/boost/boost/typeof/msvc/typeof_impl.hpp +++ b/ceph/src/boost/boost/typeof/msvc/typeof_impl.hpp @@ -10,10 +10,10 @@ # define BOOST_TYPEOF_MSVC_TYPEOF_IMPL_HPP_INCLUDED # include -# include -# include +# include +# include +# include # include -# include # include @@ -135,7 +135,7 @@ namespace boost template struct msvc_typeid_wrapper { - typedef typename msvc_extract_type >::id2type id2type; + typedef typename msvc_extract_type >::id2type id2type; typedef typename id2type::type type; }; //Workaround for ETI-bug for VC6 and VC7 @@ -156,7 +156,7 @@ namespace boost //Get the next available compile time constants index BOOST_STATIC_CONSTANT(unsigned,value=BOOST_TYPEOF_INDEX(T)); //Instantiate the template - typedef typename msvc_register_type >::id2type type; + typedef typename msvc_register_type >::id2type type; //Set the next compile time constants index BOOST_STATIC_CONSTANT(unsigned,next=value+1); //Increment the compile time constant (only needed when extensions are not active @@ -168,12 +168,12 @@ namespace boost { typedef char(*type)[encode_type::value]; }; - template typename disable_if< - typename is_function::type, + template typename enable_if_< + !is_function::value, typename sizer::type>::type encode_start(T const&); - template typename enable_if< - typename is_function::type, + template typename enable_if_< + is_function::value, typename sizer::type>::type encode_start(T&); template msvc_register_type typeof_register_type(const T&,Organizer* =0);