Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #11554

static_cast

From asit <lipun4u@gmail.com>
Newsgroups comp.lang.c++
Subject static_cast
Date 2011-11-17 00:16 -0800
Organization http://groups.google.com
Message-ID <11035735.3.1321517768926.JavaMail.geo-discussion-forums@prim23> (permalink)

Show all headers | View raw


static_cast is used to convert between enum and integer.

the same can be done using c-type casting.

then why static_cast is used ?? 

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

static_cast asit <lipun4u@gmail.com> - 2011-11-17 00:16 -0800
  Re: static_cast Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-17 01:28 -0800
  Re: static_cast Goran <goran.pusic@gmail.com> - 2011-11-17 02:48 -0800

csiph-web