forked from boostorg/typeof
*** empty log message ***
[SVN r34268]
This commit is contained in:
@ -1,42 +0,0 @@
|
||||
#ifndef BOOST_TYPEOF_BINDING_WORKAROUND_HPP_INCLUDED
|
||||
#define BOOST_TYPEOF_BINDING_WORKAROUND_HPP_INCLUDED
|
||||
|
||||
// workarounds related to inability to bind to const T&
|
||||
|
||||
/*
|
||||
MSVC 7.1-, from inside a template,
|
||||
can't bind a function pointer to const T&
|
||||
*/
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC,==1310) && defined(BOOST_TYPEOF_EMULATION)
|
||||
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/type_traits/is_function.hpp>
|
||||
|
||||
namespace boost { namespace type_of {
|
||||
|
||||
template<class V,class T>
|
||||
sizer<typename encode_type<V, T*>::type> encode(T*,
|
||||
typename enable_if<typename is_function<T>::type>::type* = 0);
|
||||
|
||||
}}
|
||||
|
||||
#elif BOOST_WORKAROUND(BOOST_MSVC,<=1310) && defined(BOOST_TYPEOF_NATIVE)
|
||||
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/type_traits/is_function.hpp>
|
||||
|
||||
namespace boost { namespace type_of {
|
||||
|
||||
template<typename T>
|
||||
char (*encode_start(T*))[encode_type<T*>::value];
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
|
||||
#endif//BOOST_TYPEOF_BINDING_WORKAROUND_HPP_INCLUDED
|
Reference in New Issue
Block a user