• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

cast keyword in C++

Hi Experts,

There is a keyword, cast< > in C++.  How it is used?  Is it from the STL?  Can you please provide me an example of how to use this?
0
ambuli
Asked:
ambuli
  • 2
1 Solution
 
rajeev_devinCommented:
Never heard of cast, actually C++ don't have it.
Instead C++ have static_cast, const_cast, dynamic_cast, reinterpret_cast.

Check this link for detailed examples
http://www.cplusplus.com/doc/tutorial/typecasting.html
0
 
rajeev_devinCommented:
The C++ style of casting is very safer than traditional C style casting.
Check those examples.
0
 
ambuliAuthor Commented:
Thanks Rajeev. My apologies.  I found out that cast is template provided by the xmlbeansxx.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now