![]() Chapter Contents |
![]() Previous |
![]() Next |
Introducing SAS/C Software, Release 6.50 |
The following enhancements to the SAS/C C++ Development System have been implemented for Release 6.50:
typeid
operator is used to identify types and access type information. The
dynamic_cast
operator allows you to perform a cast with run-time type checking. An important aspect of the
dynamic_cast
operator is the ability to implement casts from a
virtual base class to a derived class, which is impossible with other cast operators.
static_cast
operator is primarily used for conversions such as casting from a base pointer to a derived pointer. The
reinterpret_cast
operator is used for typical implementation-dependent conversions such as pointer to unrelated pointer, integral type to pointer type, and pointer type to integral
type. The
const_cast
operator is used to change the const and volatile qualifiers on pointers or references. Any old style cast can be expressed as a combination of these new
casts.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © Tue Feb 3 15:52:45 EST 1998 by SAS Institute Inc., Cary, NC, USA. All rights reserved.