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++/48559] parallel-mode vs C++0x


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48559

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-13 02:02:32 UTC ---
Johannes, all - 

if everything goes well, in a couple of days we'll have a very good
std::is_constructible in, contributed by Daniel, thus, it will be trivial,
std::is_copy_constructible. Do you know how far we can go in terms of
dispatching for parallel-mode with that trait alone? std::is_copy_assignable
will take a little more time, but if we aren't doing much assignments anyway in
the parallel code (or it can be quickly tweaked to do only copy constructions
instead of both copy assignments and copy constructions where it should do only
moves) then we can have a nice intermediate step, before calmly trying to
convert each parallel algorithm to not use moves at all.

Or we can just take the risk and surrogate for now std::is_copy_constructible
&& std::is_copy_assignable both being true with only the former being true for
dispatching, still better than the current situation, more C++0x conforming
code would compile in parallel-mode (and just fall-back to serial if the type
isn't CopyConstructible).


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