This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __rvalref overloads causing ambiguities
Paolo Carlini <pcarlini@suse.de> writes:
| Gabriel Dos Reis wrote:
|
| >chris jefferson <caj@cs.york.ac.uk> writes:
| >
| >| We can't add another level of indirection like you say. I believe we can
| >| use some templates to confuse the compiler
| >
| >and the users and maintainers too. half ;-/
| >
| Yes, I'm also rather scared by this issue. Many thanks to Jonathan for
| carefully testing both mainline and v7 with Boost, by the way.
|
| Anyway, here it's a stake the possibility itself to have a form of
| simulated move semantics in the library: 'til now, things worked out
| pretty well and pretty cleanly, in my opinion. Let's see if Chris can
| figure out a satisfactory solution...
Sure.
I'm certainly guilty of sins of "creative" template usage in the past;
but I've come to the opinion they tend to have quite subtle
interactions with other things not anticipated at the time of
hackery. It is not all obvious for users and maintainers what a
particular constructs is supposed to do without re-digestion of a fair
bit amount of scattered contexts. That was the point. I by no means
discourage people to do experiments. Experiments are good. But, I'll
watch out when it comes to deliver :-)
-- Gaby