epoc32/include/stdapis/boost/numeric/conversion/cast.hpp
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/stdapis/boost/numeric/conversion/cast.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,51 +0,0 @@
     1.4 -//  © Copyright Fernando Luis Cacciola Carballal 2000-2004
     1.5 -//  Use, modification, and distribution is subject to the Boost Software
     1.6 -//  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
     1.7 -//  http://www.boost.org/LICENSE_1_0.txt)
     1.8 -
     1.9 -//  See library home page at http://www.boost.org/libs/numeric/conversion
    1.10 -//
    1.11 -// Contact the author at: fernando_cacciola@hotmail.com
    1.12 -//
    1.13 -//
    1.14 -//  Revision History
    1.15 -//
    1.16 -//    19 Nov 2001 Syntatic changes as suggested by Darin Adler (Fernando Cacciola)
    1.17 -//    08 Nov 2001 Fixes to accommodate MSVC (Fernando Cacciola)
    1.18 -//    04 Nov 2001 Fixes to accommodate gcc2.92 (Fernando Cacciola)
    1.19 -//    30 Oct 2001 Some fixes suggested by Daryle Walker (Fernando Cacciola)
    1.20 -//    25 Oct 2001 Initial boostification (Fernando Cacciola)
    1.21 -//    23 Jan 2004 Inital add to cvs (post review)s
    1.22 -//
    1.23 -#ifndef BOOST_NUMERIC_CONVERSION_CAST_25OCT2001_HPP
    1.24 -#define BOOST_NUMERIC_CONVERSION_CAST_25OCT2001_HPP
    1.25 -
    1.26 -#include <boost/detail/workaround.hpp>
    1.27 -
    1.28 -#if BOOST_WORKAROUND(BOOST_MSVC, < 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
    1.29 -
    1.30 -#  include<boost/numeric/conversion/detail/old_numeric_cast.hpp>
    1.31 -
    1.32 -#else
    1.33 -
    1.34 -#include <boost/type.hpp>
    1.35 -#include <boost/numeric/conversion/converter.hpp>
    1.36 -
    1.37 -namespace boost
    1.38 -{
    1.39 -  template<typename Target, typename Source>
    1.40 -  inline
    1.41 -  Target numeric_cast ( Source arg )
    1.42 -  {
    1.43 -    typedef boost::numeric::converter<Target,Source> Converter ;
    1.44 -    return Converter::convert(arg);
    1.45 -  }
    1.46 -
    1.47 -  using numeric::bad_numeric_cast;
    1.48 -
    1.49 -} // namespace boost
    1.50 -
    1.51 -#endif
    1.52 -
    1.53 -
    1.54 -#endif