blob: f33ac3a5532bf432c3872d2314b8b294765fa5af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// PR c++/23691
namespace std {
class type_info {
bool operator==(const type_info& __arg) const;
};
}
template <class T, T val> struct integral_constant {
static const T value = val;
};
template< typename T > struct is_integral : integral_constant<bool,false> {};
template <bool B> struct enable_if_c {};
template<typename Functor>
typename enable_if_c<(is_integral<Functor>::value)>::type
operator==(const int& f, Functor g);
template<class D>
int get_deleter( std::type_info const & ti )
{
return ti == typeid(D);
}
|