This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33486] parallel v3: functions not in right namespace
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2007 01:07:03 -0000
- Subject: [Bug libstdc++/33486] parallel v3: functions not in right namespace
- References: <bug-33486-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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