Boost logo

Boost Users :

From: Marc Mutz (marc_at_[hidden])
Date: 2006-07-10 05:19:54


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_at_[hidden], mutz_at_[hidden]
Klarälvdalens Datakonsult AB, Platform-independent software solutions



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net