any_caster Union Template Reference
[Conversion Library]

#include <stlsoft/conversion/any_cast.hpp>

List of all members.


Detailed Description

template<typename T, typename T1, typename T2, typename T3 = any_caster_invalid_type<3>*, typename T4 = any_caster_invalid_type<4>*, typename T5 = any_caster_invalid_type<5>*, typename T6 = any_caster_invalid_type<6>*, typename T7 = any_caster_invalid_type<7>*, typename T8 = any_caster_invalid_type<8>*>
union stlsoft::any_caster< T, T1, T2, T3, T4, T5, T6, T7, T8 >

A dangerous, but sometimes necessary, tool for handling bad libraries.

This class helps overcome problems when external libraries have errors in their function parameter declarations, resulting in compilation-time type errors with some versions of the libraries, and not with others.

Note:
See inetstl::filesystem_traits<char>::find_first_file() for an example of its use.

Public Types

Member Types
typedef any_caster< T, T1, T2,
T3, T4, T5, T6, T7, T8 > 
class_type

Public Member Functions

Construction
 any_caster (T t_)
 Constructs an instance from the source type.
Conversion
 operator T1 () const
 operator T2 () const
 operator T3 () const
 operator T4 () const
 operator T5 () const
 operator T6 () const
 operator T7 () const
 operator T8 () const

Constructor & Destructor Documentation

any_caster ( t_  )  [inline, explicit]

Constructs an instance from the source type.


The documentation for this union was generated from the following file:

Generated on Thu Jun 10 08:58:44 2010 for STLSoft by  doxygen 1.5.6