This is for consistency reasons and to avoid duplicate code generation.
The RTT core already uses various bool and std::string data sources internally and hence already has
instantiations of these template classes. This patch adds extern template declarations to the DataSource.hpp and DataSources.hpp headers and removes them from the typekit headers.
Also the instantiation of the rt_string and rt_ostringstream classes (not of the respective RTT template
instantiations) has been moved from the typekit to the core library for similar reasons.
This patch removes the GCC compiler warning type attributes ignored after type is already defined [-Wattributes] while compiling the typekit library (from Types.inc) because of inconsistent visibility attributes.
This is for consistency reasons and to avoid duplicate code generation. The RTT core already uses various bool and std::string data sources internally and hence already has instantiations of these template classes. This patch adds extern template declarations to the DataSource.hpp and DataSources.hpp headers and removes them from the typekit headers.
Also the instantiation of the rt_string and rt_ostringstream classes (not of the respective RTT template instantiations) has been moved from the typekit to the core library for similar reasons.
This patch removes the GCC compiler warning
type attributes ignored after type is already defined [-Wattributes]
while compiling the typekit library (from Types.inc) because of inconsistent visibility attributes.