Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: A code fix for MSVC warning C4267 (64-bit compatibility warning,e.g. Boost Spirit)

Reply
Thread Tools

Re: A code fix for MSVC warning C4267 (64-bit compatibility warning,e.g. Boost Spirit)

 
 
Pete Becker
Guest
Posts: n/a
 
      02-10-2005
Alf P. Steinbach wrote:
> Microsoft Visual C++ warning C4267 (the number is not a typo) can occur e.g.
> when compiling Boost Spirit, or when doing
>
> std::size_t x = 0;
> std::cout << x;
>
> when compiled with 64-bit compatibility warnings enabled.
>
> One fix is to turn off conversion warnings, another _may be_ as follows --
> I'm wondering whether someone could test this on a 64-bit machine, or have
> other comments:
>


That's an awful lot of code just to avoid a stupid warning. The code as
originally written is well defined, clear, and unambiguous. The code as
rewritten is impenetrable. Complain to Microsoft.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning C4267 and warning C4996 B. Williams C++ 17 10-27-2006 09:41 PM
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Perl Misc 21 03-21-2006 07:02 AM
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Python 23 03-21-2006 07:02 AM
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Java 22 03-21-2006 07:02 AM
_BLOCK_TYPE_IS_VALID error in MSVC 7.1 with Boost and Python matt.keyes@gmail.com Python 0 10-06-2005 06:23 AM



Advertisments