CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Defines
TypeInfo.cxx
Go to the documentation of this file.
1
#include <sstream>
2
#include <typeinfo>
3
#include "
Assert.hxx
"
4
#include "
TypeInfo.hxx
"
5
#include <cstring>
6
7
namespace
CLAM
8
{
9
10
bool
SameType
(
const
std::type_info & type1,
const
std::type_info & type2)
11
{
12
if
(strcmp(type1.name(),type2.name())!=0)
return
false
;
13
if
(type1!=type2)
14
{
15
std::ostringstream os;
16
os
17
<<
"Two instances of type "
<< type1.name() <<
".\n"
18
<<
"Check that the type has a destructor defined in a cxx file or for different library versions.."
19
<< std::flush;
20
;
21
CLAM_WARNING
(
true
, os.str().c_str());
22
}
23
return
true
;
24
}
25
26
}
27
Generated by
1.8.1