9.6. Selecting RTTI support

For information on why you should enable or disable RTTI support, see "Polymorphic pointers".

The library can be built with RTTI off. By default, it assumes that RTTI is available and enables RTTI-dependent features, such as the use of the typeid() operator.

To disable RTTI support in source code, do this:

#define HAVE_RTTI 0
#include "ccs/config.hpp"
#include "ccs/db_access.hpp"
#include DEFAULT_BACKEND_HPP
#include "ccs/serialization.hpp"

Alternatively, you can edit the config.hpp file or set up a compiler macro definition in your makefile or IDE's settings panel.

Of course, you also need to set the appropriate option for your compiler.