Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > static_cast<unsigned short)( -1 ) Well defined?

Thread Tools

static_cast<unsigned short)( -1 ) Well defined?

Frederick Gotham
Posts: n/a
Bo Persson:

> We can't tell just from the snippet whether it is conformant or not. It
> depends on the definitions of the names _W64 and __int64, reserved to
> the implementation. With the proper definitions, it just could be.

It's implementation-defined as to whether the behaviour of the code is

If you're interested, I started a thread over on comp.lang.c:
4e/2156215b21253042?lnk=st&q=&rnum=1&hl=en#2156215b21 253042

(I posted on comp.lang.c rather than comp.lang.c++ as one tends to get better
answers to these kinds of questions there.)


Frederick Gotham
Reply With Quote

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
Problem - Computer cannot access internet (well not exactly.....)!. Len Wireless Networking 2 10-10-2005 01:59 PM
Friend s need my help(well your help) Frank Wireless Networking 2 07-29-2005 09:01 PM
Hi Whats considered to be a well priced and well reviewed plasma tv 42 inch and above ? Hmmmmmmm DVD Video 8 09-28-2004 09:32 AM
Thunderbird and Firefox dno't work well togetehr loaery ouopwe4wiuyt Firefox 3 08-04-2004 02:57 AM
Can .NET & IExplorer well work together? zbuilder ASP .Net 3 09-16-2003 12:55 PM