|
Boost : |
Subject: Re: [boost] [scope_exit] MSVC error C2355: 'this' : can only be referenced inside non-static member functions
From: Eric Niebler (eric_at_[hidden])
Date: 2010-08-26 00:42:43
On 8/25/2010 8:04 PM, Stephan T. Lavavej wrote:
> [Lorenzo Caminiti]
>> I get this error on MSVC 2008 but the code compiles just fine on GCC:
>> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
>
> That's not 2008, it's 2005 (and it's 2005 RTM).
>
<snip>
> This compiles with VC10 and Boost 1.44.0:
<snip>
I reported this vc9 bug to Microsoft at the time. They closed it "won't
fix". Glad to see vc10 does better.
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk