[variant] apply_visitor to rvalue variant

10 Jul
2006
10 Jul
'06
9:19 a.m.
Hi, My gcc 4.0 doesn't let me call apply_visitor on an rvalue variant. This is due to the Variant argument being a non-const reference, I guess. Is this a deliberate design decision (if so, the rationale should be documented), an oversight (in that case, it should be fixed), or a compiler bug (highly unlikely, since all of gcc 3.2 through 4.1 would then have it). Testcase (== usecase) attached. Thanks, Marc -- Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org Klarälvdalens Datakonsult AB, Platform-independent software solutions
6803
Age (days ago)
6803
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marc Mutz