This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/33486] parallel v3: functions not in right namespace



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]