- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wanted to report a "bug" which might appear when using the flow-graph.
In flow_graph.h(and probably all the other impl files) all the fake variadic-templates are being written using arguments B0-BN. The problem is that the old UNIX file termios.h defines B0 as 0. Now, when simply compiling you get a lot of compile errors because the B0 argument in the templates was replaced with 0.
I recognized this when using boost::asio together with the flow-graph.
Basic example:
[cpp]
#include <boost/asio.hpp>
#include <tbb/flow_graph.h>
int main() {
}
[/cpp]
I think that this should be fixed, as using something like boost::asio together with the flow-graph might not be a rare usecase.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, Stephan,
Thanks for the report. The next update to TBB will include a renaming of the template parameters both in flow_graph.h and in compat/tuple to reduce the liklihood of such collisions.
Regards,
Chris
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page