Opened 15 years ago

Closed 15 years ago

#1475 closed Bugs (fixed)

VC++ 2008 not configured correcly

Reported by: jrp at dial dot pipex dot com Owned by: Peder Holt
Milestone: Boost 1.35.0 Component: typeof
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

See, eg, http://tinyurl.com/3666gx

    call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo @"C:\temp\regression\results\boost\bin.v2\libs\xpressive\test\test_symbols.test\msvc-9.0\debug\link-static\threading-multi\test_symbols.obj.rsp" 

test_symbols.cpp
using native typeof
C:\temp\regression\boost\boost/typeof/msvc/typeof_impl.hpp(172) : error C2975: 'ref_type_info' : invalid template argument for 'boost::type_of::msvc_typeid_wrapper', expected compile-time constant expression
        C:\temp\regression\boost\boost/typeof/msvc/typeof_impl.hpp(174) : see reference to class template instantiation 'boost::type_of::encode_type<T>' being compiled
C:\temp\regression\boost\boost/typeof/msvc/typeof_impl.hpp(172) : error C2440: 'specialization' : cannot convert from 'int' to 'const type_info &'

Change History (1)

comment:1 by Peder Holt, 15 years ago

Resolution: fixed
Status: newclosed

The code for VC8 and VC9 has been reverted to use sizeof in stead of typeid in typeof emulation. This solves the problem.

Note: See TracTickets for help on using tickets.