Sha256: 4e246089f58f4c6f207d7443c5ee78dfdc12a35a37bfe99ccfd263427f779a45

Contents?: true

Size: 794 Bytes

Versions: 58

Compression:

Stored size: 794 Bytes

Contents

// Copyright David Abrahams 2003.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef IMPLICIT_CAST_DWA200356_HPP
# define IMPLICIT_CAST_DWA200356_HPP

# include <boost/mpl/identity.hpp>

namespace boost {

// implementation originally suggested by C. Green in
// http://lists.boost.org/MailArchives/boost/msg00886.php

// The use of identity creates a non-deduced form, so that the
// explicit template argument must be supplied
template <typename T>
inline T implicit_cast (typename mpl::identity<T>::type x) {
    return x;
}

// incomplete return type now is here
//template <typename T>
//void implicit_cast (...);

} // namespace boost


#endif // IMPLICIT_CAST_DWA200356_HPP

Version data entries

58 entries across 58 versions & 8 rubygems

Version Path
rockdog-passenger-0.0.1 ext/boost/implicit_cast.hpp
passenger-3.0.21 ext/boost/implicit_cast.hpp
passenger-3.0.19 ext/boost/implicit_cast.hpp
passenger-3.0.18 ext/boost/implicit_cast.hpp
passenger-3.9.1.beta ext/boost/implicit_cast.hpp
passenger-3.0.17 ext/boost/implicit_cast.hpp
passenger-3.0.15 ext/boost/implicit_cast.hpp
passenger-3.0.14 ext/boost/implicit_cast.hpp
passenger-3.0.13 ext/boost/implicit_cast.hpp
passenger-3.0.12 ext/boost/implicit_cast.hpp
yspassenger-3.0.12 ext/boost/implicit_cast.hpp
passenger-3.0.11 ext/boost/implicit_cast.hpp
passenger-3.0.10 ext/boost/implicit_cast.hpp
vanity-1.7.1 vendor/ruby/1.9.1/gems/passenger-2.2.15/ext/boost/implicit_cast.hpp
passenger-3.0.9 ext/boost/implicit_cast.hpp
passenger-3.0.8 ext/boost/implicit_cast.hpp
passenger-3.0.7 ext/boost/implicit_cast.hpp
passenger-3.0.6 ext/boost/implicit_cast.hpp
passenger-3.0.5 ext/boost/implicit_cast.hpp
passenger-3.0.4 ext/boost/implicit_cast.hpp