stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (STDCXX-73) [MSVC 8] std::type_info declared in the wrong namespace
Date Sat, 03 Dec 2005 02:22:30 GMT
     [ http://issues.apache.org/jira/browse/STDCXX-73?page=all ]
     
Martin Sebor resolved STDCXX-73:
--------------------------------

    Resolution: Fixed

Fixed with the committed changes.

> [MSVC 8] std::type_info declared in the wrong namespace
> -------------------------------------------------------
>
>          Key: STDCXX-73
>          URL: http://issues.apache.org/jira/browse/STDCXX-73
>      Project: STDCXX
>         Type: Bug
>   Components: 18. Language Support
>     Versions: 4.1.2
>  Environment: MSVC 8.0, Windows
>     Reporter: Martin Sebor
>     Assignee: Martin Sebor
>     Priority: Blocker
>      Fix For: 4.1.3

>
> $ cat t.cpp && nmake -nologo t.exe
> #include <typeinfo>
> void foo (const std::type_info&) { }
> int main ()
> {
>     foo (typeid (int));
> }
>         cl  -D_RWCONFIG=15d_msvc_8_0 -Ic:\contrib\cygwin\build\sebor\dev-hal/include
-I.\..\..\..\../include -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support/../include
 -Ic:/contrib/cygwin/build/sebor/dev-hal/include/ansi -I.\..\..\..\.. -Ic:\contrib\cygwin\build\sebor\dev-hal
-Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support -I. -nologo -EHsc -Zc:wchar_t
-MDd -W3 -Zi -GR -GF -RTC1 -D_CRT_SECURE_NO_DEPRECATE  -c t.cpp
> t.cpp
> t.cpp(7) : error C2664: 'foo' : cannot convert parameter 1 from 'const type_info' to
'const std::type_info &'
>         Reason: cannot convert from 'const type_info' to 'const std::type_info'
>         No user-defined-conversion operator available that can perform this conversion,
or the operator cannot be called
> NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"'
: return code '0x2'
> Stop.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message