author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
#ifndef BOOST_SERIALIZATION_VOID_CAST_FWD_HPP |
williamr@2 | 2 |
#define BOOST_SERIALIZATION_VOID_CAST_FWD_HPP |
williamr@2 | 3 |
|
williamr@2 | 4 |
// MS compatible compilers support #pragma once |
williamr@2 | 5 |
#if defined(_MSC_VER) && (_MSC_VER >= 1020) |
williamr@2 | 6 |
# pragma once |
williamr@2 | 7 |
#endif |
williamr@2 | 8 |
|
williamr@2 | 9 |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
williamr@2 | 10 |
// void_cast_fwd.hpp: interface for run-time casting of void pointers. |
williamr@2 | 11 |
|
williamr@2 | 12 |
// (C) Copyright 2005 Robert Ramey - http://www.rrsd.com . |
williamr@2 | 13 |
// Use, modification and distribution is subject to the Boost Software |
williamr@2 | 14 |
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
williamr@2 | 15 |
// http://www.boost.org/LICENSE_1_0.txt) |
williamr@2 | 16 |
// gennadiy.rozental@tfn.com |
williamr@2 | 17 |
|
williamr@2 | 18 |
// See http://www.boost.org for updates, documentation, and revision history. |
williamr@2 | 19 |
|
williamr@2 | 20 |
#include <boost/serialization/force_include.hpp> |
williamr@2 | 21 |
#include <boost/detail/workaround.hpp> |
williamr@2 | 22 |
|
williamr@2 | 23 |
namespace boost { |
williamr@2 | 24 |
namespace serialization { |
williamr@2 | 25 |
namespace void_cast_detail{ |
williamr@2 | 26 |
class void_caster; |
williamr@2 | 27 |
} // namespace void_cast_detail |
williamr@2 | 28 |
|
williamr@2 | 29 |
template<class Derived, class Base> |
williamr@2 | 30 |
BOOST_DLLEXPORT |
williamr@2 | 31 |
// DMC doesn't allow export and inline, so supress the inline |
williamr@2 | 32 |
#if BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x849)) |
williamr@2 | 33 |
#else |
williamr@2 | 34 |
inline |
williamr@2 | 35 |
#endif |
williamr@2 | 36 |
const void_cast_detail::void_caster & void_cast_register( |
williamr@2 | 37 |
const Derived * dnull = NULL, |
williamr@2 | 38 |
const Base * bnull = NULL |
williamr@2 | 39 |
) BOOST_USED; |
williamr@2 | 40 |
} // namespace serialization |
williamr@2 | 41 |
} // namespace boost |
williamr@2 | 42 |
|
williamr@2 | 43 |
#endif // BOOST_SERIALIZATION_VOID_CAST_HPP |