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