cgv
has_virtual_destructor.h
1
#pragma once
2
3
#if !defined(_MSC_VER) || (_MSC_VER < 1400)
4
#include <tr1/type_traits>
5
#endif
6
7
namespace
cgv
{
8
namespace
type {
10
namespace
cond {
12
template
<
typename
T>
13
struct
has_virtual_destructor
14
{
15
static
const
bool
value =
16
#if _MSC_VER >= 1400
17
__has_virtual_destructor(T);
18
#else
19
std::tr1::has_virtual_destructor<T>::value;
20
#endif
21
};
22
}
23
}
24
}
cgv::type::cond::has_virtual_destructor
template condition returning, whether the passed type has a virtual destructor
Definition:
has_virtual_destructor.h:14
cgv
the cgv namespace
Definition:
vr_calib.cxx:9
projects
git
cgv
cgv
type
cond
has_virtual_destructor.h
Generated by
1.8.18