- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In file src/tbb/tbb_misc.cpp there is a missing #include . The header is required to be able to construct exception objects in this file, since STL exceptions accept std::string in the constructor. Apparently, STLPort defines exception classes without including somehow, which, I believe, is correct in C++. Adding the include fixes compilation with STLPort.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tbb_exception.h contains the following:
But in general, I think it's rather a bug in the implementation, even if the standard allows it. Creation of an std::exception-derived object might notuse string explicitly, so why I have to include?
#if __SUNPRO_CC
#include
#endif
But in general, I think it's rather a bug in the implementation, even if the standard allows it. Creation of an std::exception-derived object might notuse string explicitly, so why I have to include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can test for _STLPORT_VERSION or __SGI_STL_PORT macros, after including something from STL. The latter one, I presume, is defined for older versions of STLPort, so probably the first one would be enough.
Or you can simply always #include . :)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page