Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32def.h
Link against:

CONST_CAST

CONST_CAST(type,exp) (const_cast<type>(exp))
CONST_CAST(type,exp) ((type)(exp))

Support

Supported from 5.0

Description

const cast.

If __VC32__ is defined (i.e. Microsoft Visual C++ is the compiler), then the macro expands to the C++ const_cast operator. Otherwise, as GCC does not currently support this operator, it expands to a standard C-style cast.

Parameters

type

destination type of cast

exp

expression to cast