• Advertisement
Sign in to follow this  

Including fstream gives warnings about xlocnum in MSVC++

This topic is 4312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my MSVC++ 2005 windows console project, I included <fstream> for use in a logging system. Although the project compiles and links successfully, it issues a long list of warnings about a file called xlocnum, which isn't included anywhere in the project (I'm assuming that fstream or one of its included files includes xlocnum). Here are the warnings:
1>c:\msvc++\vc\include\xlocnum(590) : warning C4312: 'type cast' : conversion from 'uintptr_t' to 'void *' of greater size
1>        c:\msvc++\vc\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator<_Elem,_Traits> std::num_get<_Elem,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,void *&) const'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _InIt=std::istreambuf_iterator<char,std::char_traits<char>>
1>        ]
1>        c:\msvc++\vc\include\xlocnum(1365) : see reference to class template instantiation 'std::num_get<_Elem,_InIt>' being compiled
1>        with
1>        [
1>            _Elem=char,
1>            _InIt=std::istreambuf_iterator<char,std::char_traits<char>>
1>        ]
1>c:\msvc++\vc\include\xlocnum(590) : warning C4312: 'type cast' : conversion from 'uintptr_t' to 'void *' of greater size
1>        c:\msvc++\vc\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator<_Elem,_Traits> std::num_get<_Elem,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,void *&) const'
1>        with
1>        [
1>            _Elem=wchar_t,
1>            _Traits=std::char_traits<wchar_t>,
1>            _InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
1>        ]
1>        c:\msvc++\vc\include\xlocnum(1371) : see reference to class template instantiation 'std::num_get<_Elem,_InIt>' being compiled
1>        with
1>        [
1>            _Elem=wchar_t,
1>            _InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
1>        ]

I don't like seeing these every time I build the project; is there any way to make them disappear? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
You can go to your project options, under C/C++, General there should be an option near the bottom to turn off 64 bit portability warnings.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement