Chapter 26. Other Topics

 

What’s in a name? that which we call a rose By any other name would smell as sweet.

 
 --William Shakespeare
 

O Diamond! Diamond! thou little knowest the mischief done!

 
 --—Sir Isaac Newton

OBJECTIVES

In this chapter you’ll learn:

  • To use const_cast to temporarily treat a const object as a non-const object.

  • To use namespaces.

  • To use operator keywords.

  • To use mutable members in const objects.

  • To use class-member pointer operators .* and ->*.

  • To use multiple inheritance.

  • The role of virtual base classes in multiple inheritance.

  • To use command-line arguments.

  • To use variable-length argument lists.

  • To use delegates with C++/CLI.

Outline

26.1

Introduction

26.2

Other Cast Operators

26.3

namespaces

26.4

Operator Keywords

26.5

mutable Class Members

26.6 ...

Get Visual C++ 2008: How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.