Boost logo

Boost :

Subject: [boost] [config] including typeinfo in dinkumware.hpp when RTTI is disabled
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-11-01 09:38:11


Evidently the only way to currently compile clang on Windows using the
VC++ RTL is to compile without RTTI and exception handling in its VC++
emulation ( options -D_HAS_EXCEPTIONS=0 /GR- ). This may be totally
unrealistic for Boost. Nonetheless with these compiler options, when the
dinkumware.hpp is being used by Boost config, it is including typeinfo
and this is causing a problem:

  c:\Program Files\Microsoft Visual Studio
10.0\VC\INCLUDE\typeinfo(156,10) : error: unknown class name
'exception'; did you mean '_exception'?
         : public exception

Is it realistic in dinkumware.hpp to not include typeinfo if RTTI is not
enabled ? Or is it just more realistic to say that compiling Boost
libraries with RTTI disabled is not going to work ?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk