[Bug libstdc++/33486] parallel v3: functions not in right namespace
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 10 01:07:00 GMT 2007
------- Comment #2 from bangerth at dealii dot org 2007-10-10 01:07 -------
By the way, here is finally also an example that definitely should
compile due to Koenig lookup:
---------------------
#include <algorithm>
#include <vector>
#include <functional>
void f () {
std::vector<int> boundary_indicators;
transform (boundary_indicators.begin(), boundary_indicators.end(),
boundary_indicators.begin(),
std::bind2nd (std::not_equal_to<int>(), -1));
}
---------------------
Note that this currently yields
d/deal.II> ../../bin/gcc-mainline/bin/c++ -c x.cc -D_GLIBCXX_PARALLEL
x.cc: In function 'void f()':
x.cc:8: error: 'transform' was not declared in this scope
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33486
More information about the Gcc-bugs
mailing list