|
Boost Users : |
Subject: [Boost-users] [xpressive] Shouldn't external placeholder variables allow consts?
From: Ami Ganguli (ami.ganguli_at_[hidden])
Date: 2009-10-10 06:46:00
I came across an interesting problem:
what.let(_placeholder = this);
fails to compile, because 'this' is a const pointer.
A simple workaround:
MyClass *_this = this;
what.let(_placeholder = _this);
But surely this shouldn't be necessary? Couldn't the right hand side
of the let be declared const?
Regards,
Ami.
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