On 5/23/2015 8:12 AM, Rob Stewart wrote:
On May 22, 2015 2:57:26 PM EDT, Edward Diener
wrote: AMDG
On 05/22/2015 08:02 AM, Edward Diener wrote:
I discovered a strange VC++ bug using Boost.typeof. I am not
On 5/22/2015 11:24 AM, Steven Watanabe wrote: posting
this to rag VC++ but wondering if there is some known workaround in Boost or in Boost.config.
The workaround for most weird Boost.Typeof errors is BOOST_TYPEOF_NESTED_TYPEDEF_TPL.
Thanks !
I saw that macro and saw the mention in the doc of "deconfusing several compilers (notably VC7.1 and VC8.0) on the way", and could not get it into my head that this could still be a problem with VC12. Of course I should have tried it.
Oh Microsoft ! What's a little bug that you refuse to fix for at least a decade and counting.
Isn't the problem the lack of two-phase lookup in that compiler?
Considering that in my example which fails the class template never gets instantiated it does not seem that the lack of two-phase lookup should cause such an error. But whatever... Microsoft has a well-known system in place by which they decide that known bugs should not be fixed if they don't think it is important enough to do so.