- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ clang --version
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
$ make compiler=clang arch=intel64 test
[cut uninteresting output ...]
clang++ -c -MMD -O2 -DUSE_PTHREAD -m64 -Wall -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -I../../src -I../../src/rml/include -I../../include -I. ../../src/test/test_eh_flow_graph.cpp
In file included from ../../src/test/test_eh_flow_graph.cpp:32:
In file included from ../../include/tbb/flow_graph.h:45:
../../include/tbb/compat/tuple:496:67: error: expected expression
get(tuple
& t) { return t.get (); } ^
../../include/tbb/compat/tuple:500:73: error: expected expression
get(const tuple
& t) { return t.get (); } ^
2 errors generated.
make[1]: *** [test_eh_flow_graph.o] Error 1
make: [test] Error 2 (ignored)
Apparently the compiler has a problem with the call to the tuple::get
diff --git a/tbb40_20120613oss/include/tbb/compat/tuple b/tbb40_20120613oss/include/tbb/compat/tuple
index 0c8721c..120b55f 100644
--- a/tbb40_20120613oss/include/tbb/compat/tuple
+++ b/tbb40_20120613oss/include/tbb/compat/tuple
@@ -493,11 +493,11 @@ struct tuple_element {
template
inline static typename tuple_element
>::type& - get(tuple
& t) { return t.get (); } + get(tuple
& t) { return internal::get_helper ::get(t); } template
inline static typename tuple_element
>::type const& - get(const tuple
& t) { return t.get (); } + get(const tuple
& t) { return internal::get_helper ::get(t); } } // interface5
} // tbb
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page