You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(89) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(208) |
Feb
(76) |
Mar
(55) |
Apr
(74) |
May
(43) |
Jun
(116) |
Jul
(109) |
Aug
(46) |
Sep
(36) |
Oct
(106) |
Nov
(159) |
Dec
(128) |
| 2007 |
Jan
(54) |
Feb
(225) |
Mar
(200) |
Apr
(229) |
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Stefan S. <st...@us...> - 2007-03-29 13:14:08
|
Update of /cvsroot/boost-sandbox/boost-sandbox/xml/tests In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12781/xml/tests Log Message: Directory /cvsroot/boost-sandbox/boost-sandbox/xml/tests added to the repository |
|
From: Stefan S. <st...@us...> - 2007-03-29 13:13:41
|
Update of /cvsroot/boost-sandbox/boost-sandbox/xml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12426/xml Log Message: Directory /cvsroot/boost-sandbox/boost-sandbox/xml added to the repository |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:08
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/parallel/test/python In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/libs/parallel/test/python Removed Files: Jamfile all_gather_test.py all_reduce_test.py all_to_all_test.py broadcast_test.py gather_test.py generators.py reduce_test.py ring_test.py scan_test.py scatter_test.py skeleton_content_test.cpp skeleton_content_test.py Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- skeleton_content_test.cpp DELETED --- --- gather_test.py DELETED --- --- scatter_test.py DELETED --- --- ring_test.py DELETED --- --- broadcast_test.py DELETED --- --- generators.py DELETED --- --- skeleton_content_test.py DELETED --- --- Jamfile DELETED --- --- all_to_all_test.py DELETED --- --- all_reduce_test.py DELETED --- --- reduce_test.py DELETED --- --- scan_test.py DELETED --- --- all_gather_test.py DELETED --- |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:06
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/parallel/test In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/libs/parallel/test Removed Files: Jamfile all_gather_test.cpp all_reduce_test.cpp all_to_all_test.cpp broadcast_test.cpp gather_test.cpp gps_position.hpp is_mpi_op_test.cpp nonblocking_test.cpp reduce_test.cpp ring_test.cpp scan_test.cpp scatter_test.cpp skeleton_content_test.cpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- all_to_all_test.cpp DELETED --- --- ring_test.cpp DELETED --- --- skeleton_content_test.cpp DELETED --- --- is_mpi_op_test.cpp DELETED --- --- Jamfile DELETED --- --- nonblocking_test.cpp DELETED --- --- broadcast_test.cpp DELETED --- --- scan_test.cpp DELETED --- --- gps_position.hpp DELETED --- --- gather_test.cpp DELETED --- --- reduce_test.cpp DELETED --- --- scatter_test.cpp DELETED --- --- all_gather_test.cpp DELETED --- --- all_reduce_test.cpp DELETED --- |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:05
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/parallel/src/mpi/python In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/libs/parallel/src/mpi/python Removed Files: collectives.cpp communicator.cpp datatypes.cpp documentation.cpp environment.cpp exception.cpp module.cpp request.cpp serialize.cpp skeleton_and_content.cpp status.cpp timer.cpp utility.hpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- communicator.cpp DELETED --- --- utility.hpp DELETED --- --- documentation.cpp DELETED --- --- module.cpp DELETED --- --- status.cpp DELETED --- --- environment.cpp DELETED --- --- exception.cpp DELETED --- --- request.cpp DELETED --- --- timer.cpp DELETED --- --- collectives.cpp DELETED --- --- datatypes.cpp DELETED --- --- skeleton_and_content.cpp DELETED --- --- serialize.cpp DELETED --- |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:05
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/parallel/build In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/libs/parallel/build Removed Files: Jamfile __init__.py mpi.jam Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- mpi.jam DELETED --- --- __init__.py DELETED --- --- Jamfile DELETED --- |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:04
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/parallel/mpi/collectives In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/boost/parallel/mpi/collectives Removed Files: all_gather.hpp all_reduce.hpp all_to_all.hpp broadcast.hpp gather.hpp reduce.hpp scan.hpp scatter.hpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- gather.hpp DELETED --- --- scatter.hpp DELETED --- --- all_gather.hpp DELETED --- --- broadcast.hpp DELETED --- --- scan.hpp DELETED --- --- reduce.hpp DELETED --- --- all_reduce.hpp DELETED --- --- all_to_all.hpp DELETED --- |
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/parallel/src/mpi In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/libs/parallel/src/mpi Removed Files: broadcast.cpp communicator.cpp computation_tree.cpp content_oarchive.cpp environment.cpp mpi_datatype_cache.cpp mpi_datatype_oarchive.cpp packed_iarchive.cpp packed_oarchive.cpp packed_skeleton_iarchive.cpp packed_skeleton_oarchive.cpp point_to_point.cpp request.cpp text_skeleton_iarchive.cpp text_skeleton_oarchive.cpp timer.cpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- communicator.cpp DELETED --- --- packed_skeleton_iarchive.cpp DELETED --- --- packed_iarchive.cpp DELETED --- --- environment.cpp DELETED --- --- broadcast.cpp DELETED --- --- mpi_datatype_cache.cpp DELETED --- --- packed_skeleton_oarchive.cpp DELETED --- --- packed_oarchive.cpp DELETED --- --- text_skeleton_oarchive.cpp DELETED --- --- mpi_datatype_oarchive.cpp DELETED --- --- request.cpp DELETED --- --- point_to_point.cpp DELETED --- --- timer.cpp DELETED --- --- content_oarchive.cpp DELETED --- --- text_skeleton_iarchive.cpp DELETED --- --- computation_tree.cpp DELETED --- |
|
From: Douglas G. <dg...@us...> - 2007-03-29 13:09:04
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/parallel In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/boost/parallel Removed Files: mpi.hpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- mpi.hpp DELETED --- |
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/parallel/mpi/detail In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/boost/parallel/mpi/detail Removed Files: broadcast_sc.hpp communicator_sc.hpp computation_tree.hpp content.hpp content_oarchive.hpp forward_iprimitive.hpp forward_oprimitive.hpp forward_skeleton_iarchive.hpp forward_skeleton_oarchive.hpp ignore_iprimitive.hpp ignore_oprimitive.hpp ignore_skeleton_oarchive.hpp mpi_datatype_cache.hpp mpi_datatype_oarchive.hpp mpi_datatype_primitive.hpp packed_iprimitive.hpp packed_oprimitive.hpp point_to_point.hpp text_skeleton_oarchive.hpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- ignore_oprimitive.hpp DELETED --- --- mpi_datatype_oarchive.hpp DELETED --- --- text_skeleton_oarchive.hpp DELETED --- --- forward_oprimitive.hpp DELETED --- --- mpi_datatype_primitive.hpp DELETED --- --- content_oarchive.hpp DELETED --- --- packed_iprimitive.hpp DELETED --- --- forward_skeleton_oarchive.hpp DELETED --- --- forward_iprimitive.hpp DELETED --- --- packed_oprimitive.hpp DELETED --- --- mpi_datatype_cache.hpp DELETED --- --- point_to_point.hpp DELETED --- --- computation_tree.hpp DELETED --- --- broadcast_sc.hpp DELETED --- --- ignore_skeleton_oarchive.hpp DELETED --- --- communicator_sc.hpp DELETED --- --- forward_skeleton_iarchive.hpp DELETED --- --- content.hpp DELETED --- --- ignore_iprimitive.hpp DELETED --- |
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/parallel/mpi In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9994/boost/parallel/mpi Removed Files: allocator.hpp collectives.hpp collectives_fwd.hpp communicator.hpp config.hpp datatype.hpp datatype_fwd.hpp environment.hpp exception.hpp nonblocking.hpp operations.hpp packed_iarchive.hpp packed_oarchive.hpp python.hpp request.hpp skeleton_and_content.hpp skeleton_and_content_fwd.hpp status.hpp timer.hpp Log Message: Remove Boost.MPI. It is in the main Boost CVS now --- exception.hpp DELETED --- --- config.hpp DELETED --- --- communicator.hpp DELETED --- --- timer.hpp DELETED --- --- operations.hpp DELETED --- --- request.hpp DELETED --- --- packed_iarchive.hpp DELETED --- --- allocator.hpp DELETED --- --- python.hpp DELETED --- --- packed_oarchive.hpp DELETED --- --- collectives_fwd.hpp DELETED --- --- nonblocking.hpp DELETED --- --- environment.hpp DELETED --- --- status.hpp DELETED --- --- collectives.hpp DELETED --- --- datatype_fwd.hpp DELETED --- --- skeleton_and_content_fwd.hpp DELETED --- --- datatype.hpp DELETED --- --- skeleton_and_content.hpp DELETED --- |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:33:17
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2284/boost-sandbox/boost/units/systems Modified Files: cgs.hpp Log Message: Bug Fixes Index: cgs.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/cgs.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- cgs.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ cgs.hpp 29 Mar 2007 00:33:16 -0000 1.2 @@ -44,6 +44,4 @@ #include <boost/units/systems/cgs/volume.hpp> #include <boost/units/systems/cgs/wavenumber.hpp> -#include <boost/units/systems/conversions/conversion_headers.hpp> - #endif // BOOST_UNITS_CGS_HPP |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:32:57
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1898/boost-sandbox/boost/units/systems Modified Files: si.hpp Log Message: Bug Fixes Index: si.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/si.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- si.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ si.hpp 29 Mar 2007 00:32:57 -0000 1.2 @@ -63,6 +63,4 @@ #include <boost/units/systems/si/luminous_flux.hpp> #include <boost/units/systems/si/wavenumber.hpp> -#include <boost/units/systems/conversions/conversion_headers.hpp> - #endif // BOOST_UNITS_SI_HPP |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:32:41
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1884/boost-sandbox/boost/units Modified Files: cmath.hpp Log Message: Bug Fixes Index: cmath.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/cmath.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- cmath.hpp 16 Mar 2007 18:12:41 -0000 1.1.1.1 +++ cmath.hpp 29 Mar 2007 00:32:41 -0000 1.2 @@ -409,7 +409,7 @@ typedef quantity<Unit,Y> quantity_type; - return quantity_type::from_value(modf(q1.value(), &q2->value())); + return quantity_type::from_value(modf(q1.value(), quantity_reinterpret_cast<Y*>(q2))); } template<class Unit, class Y, class Int> |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:32:23
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1871/boost-sandbox/boost/units Modified Files: io.hpp Log Message: Bug Fixes Index: io.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/io.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- io.hpp 16 Mar 2007 18:12:42 -0000 1.1.1.1 +++ io.hpp 29 Mar 2007 00:32:22 -0000 1.2 @@ -36,7 +36,7 @@ template<class Archive,class Unit,class Y> inline void serialize(Archive& ar,boost::units::quantity<Unit,Y>& q,const unsigned int version) { - ar & q.value(); + ar & quantity_reinterpret_cast<Y&>(q); } } // namespace serialization @@ -74,8 +74,7 @@ { const unit<Dim,System> u; - os << val.value() << ' '; - detail::output_impl(os, u); + os << val.value() << ' ' << u; return os; } |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:32:07
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1636/boost-sandbox/boost/units/detail Modified Files: io_impl.hpp Log Message: Bug Fixes Index: io_impl.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/io_impl.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- io_impl.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ io_impl.hpp 29 Mar 2007 00:32:06 -0000 1.2 @@ -22,7 +22,7 @@ namespace units { -template<class System,class Tag> struct unit_info; +template<class Tag, class System> struct base_unit_info; namespace detail { @@ -72,7 +72,7 @@ typedef typename detail::get_value<D>::type value_type; typedef typename detail::get_system_tag_of_dim<System,dim_tag_type>::type system_tag_type; - typedef unit_info<system_tag_type,dim_tag_type> m_type; + typedef base_unit_info<dim_tag_type,system_tag_type> m_type; detail::print_string(os, m_type::symbol()); @@ -98,7 +98,7 @@ typedef typename detail::get_value<D>::type value_type; typedef typename detail::get_system_tag_of_dim<System,dim_tag_type>::type system_tag_type; - typedef unit_info<system_tag_type,dim_tag_type> m_type; + typedef base_unit_info<dim_tag_type,system_tag_type> m_type; detail::print_string(os, m_type::symbol()); |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:31:48
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1477/boost-sandbox/boost/units/systems Modified Files: trig.hpp Log Message: Bug Fixes Index: trig.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/trig.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- trig.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ trig.hpp 29 Mar 2007 00:31:48 -0000 1.2 @@ -26,9 +26,9 @@ namespace angle { -struct degree_system_tag : public ordinal<3> { }; ///< unit system tag for angles in degrees -struct gradian_system_tag : public ordinal<4> { }; ///< unit system tag for angles in gradians -struct radian_system_tag : public ordinal<5> { }; ///< unit system tag for angles in radians +struct degree_system_tag : public ordinal<-3> { }; ///< unit system tag for angles in degrees +struct gradian_system_tag : public ordinal<-2> { }; ///< unit system tag for angles in gradians +struct radian_system_tag : public ordinal<-1> { }; ///< unit system tag for angles in radians } @@ -70,21 +70,21 @@ BOOST_UNITS_STATIC_CONSTANT(radians,angle::radian); template<> -struct unit_info<angle::degree_system_tag,angle_tag> +struct base_unit_info<angle_tag,angle::degree_system_tag> { static std::string name() { return "degree"; } static std::string symbol() { return "deg"; } }; template<> -struct unit_info<angle::gradian_system_tag,angle_tag> +struct base_unit_info<angle_tag,angle::gradian_system_tag> { static std::string name() { return "gradian"; } static std::string symbol() { return "grad"; } }; template<> -struct unit_info<angle::radian_system_tag,angle_tag> +struct base_unit_info<angle_tag,angle::radian_system_tag> { static std::string name() { return "radian"; } static std::string symbol() { return "rad"; } |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:31:47
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1466/boost-sandbox/boost/units/detail Modified Files: conversion_impl.hpp Log Message: Bug Fixes Index: conversion_impl.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/conversion_impl.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- conversion_impl.hpp 16 Mar 2007 18:12:43 -0000 1.1.1.1 +++ conversion_impl.hpp 29 Mar 2007 00:31:27 -0000 1.2 @@ -14,7 +14,10 @@ #include <cmath> #include <boost/type_traits/is_base_and_derived.hpp> +#include <boost/type_traits/is_same.hpp> +#include <boost/mpl/eval_if.hpp> +#include <boost/mpl/if.hpp> #include <boost/mpl/begin.hpp> #include <boost/mpl/deref.hpp> #include <boost/mpl/next.hpp> @@ -89,14 +92,34 @@ static one value() { return one(); } }; -template<class Tag,class System1,class System2> struct base_unit_converter; +struct identity_conversion : trivial_conversion, implicitly_convertible {}; -/// base unit conversion from system to itself is a no-op -template<class Tag,class System1> -struct base_unit_converter<Tag, System1, System1> : - public implicitly_convertible, - public trivial_conversion -{ }; +struct define_reverse_automatically {}; + +struct undefined_conversion {}; + +template<class Converter> +struct reverse_conversion + : mpl::if_<is_base_and_derived<implicitly_convertible, Converter>, implicitly_convertible, undefined_conversion>::type { + typedef typename Converter::type type; + static type value() { + return(one()/Converter::value()); + } +}; + +template<class Dimension, class Tag1, class Tag2> +struct base_unit_converter : + mpl::eval_if<is_same<Tag1, Tag2>, + mpl::identity<identity_conversion>, + mpl::if_< + is_base_and_derived< + define_reverse_automatically, + base_unit_converter<Dimension,Tag2,Tag1> + >, + reverse_conversion<base_unit_converter<Dimension,Tag2,Tag1> >, + undefined_conversion + > + >::type {}; template<class Tag,class System1,class System2> struct base_unit_is_implicitly_convertible : |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:31:47
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1096/boost-sandbox/boost/units Modified Files: conversion.hpp Log Message: Bug Fixes Index: conversion.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/conversion.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- conversion.hpp 16 Mar 2007 18:12:42 -0000 1.1.1.1 +++ conversion.hpp 29 Mar 2007 00:31:06 -0000 1.2 @@ -31,9 +31,10 @@ template<class S1, class S2, class Dim1, - class Y> -class conversion_helper< quantity<unit<Dim1,homogeneous_system<S1> >,Y>, - quantity<unit<Dim1,homogeneous_system<S2> >,Y> > + class Y1, + class Y2> +class conversion_helper< quantity<unit<Dim1,homogeneous_system<S1> >,Y1>, + quantity<unit<Dim1,homogeneous_system<S2> >,Y2> > { public: typedef homogeneous_system<S1> system1_type; @@ -42,8 +43,8 @@ typedef unit<Dim1,system1_type> unit1_type; typedef unit<Dim1,system2_type> unit2_type; - typedef quantity<unit1_type,Y> from_quantity_type; - typedef quantity<unit2_type,Y> to_quantity_type; + typedef quantity<unit1_type,Y1> from_quantity_type; + typedef quantity<unit2_type,Y2> to_quantity_type; static to_quantity_type @@ -59,9 +60,10 @@ template<class S1, class S2, class Dim1, - class Y> -class conversion_helper< quantity<unit<Dim1,homogeneous_system<S1> >,Y>, - quantity<unit<Dim1,heterogeneous_system<S2> >,Y> > + class Y1, + class Y2> +class conversion_helper< quantity<unit<Dim1,homogeneous_system<S1> >,Y1>, + quantity<unit<Dim1,heterogeneous_system<S2> >,Y2> > { public: typedef homogeneous_system<S1> system1_type; @@ -70,8 +72,8 @@ typedef unit<Dim1,system1_type> unit1_type; typedef unit<Dim1,system2_type> unit2_type; - typedef quantity<unit1_type,Y> from_quantity_type; - typedef quantity<unit2_type,Y> to_quantity_type; + typedef quantity<unit1_type,Y1> from_quantity_type; + typedef quantity<unit2_type,Y2> to_quantity_type; static to_quantity_type @@ -88,9 +90,10 @@ template<class S1, class S2, class Dim1, - class Y> -class conversion_helper< quantity<unit<Dim1,heterogeneous_system<S1> >,Y>, - quantity<unit<Dim1,homogeneous_system<S2> >,Y> > + class Y1, + class Y2> +class conversion_helper< quantity<unit<Dim1,heterogeneous_system<S1> >,Y1>, + quantity<unit<Dim1,homogeneous_system<S2> >,Y2> > { public: typedef heterogeneous_system<S1> system1_type; @@ -99,8 +102,8 @@ typedef unit<Dim1,system1_type> unit1_type; typedef unit<Dim1,system2_type> unit2_type; - typedef quantity<unit1_type,Y> from_quantity_type; - typedef quantity<unit2_type,Y> to_quantity_type; + typedef quantity<unit1_type,Y1> from_quantity_type; + typedef quantity<unit2_type,Y2> to_quantity_type; static to_quantity_type @@ -117,9 +120,10 @@ template<class S1, class S2, class Dim1, - class Y> - class conversion_helper< quantity<unit<Dim1,heterogeneous_system<S1> >,Y>, - quantity<unit<Dim1,heterogeneous_system<S2> >,Y> > + class Y1, + class Y2> + class conversion_helper< quantity<unit<Dim1,heterogeneous_system<S1> >,Y1>, + quantity<unit<Dim1,heterogeneous_system<S2> >,Y2> > { public: typedef heterogeneous_system<S1> system1_type; @@ -128,8 +132,8 @@ typedef unit<Dim1,system1_type> unit1_type; typedef unit<Dim1,system2_type> unit2_type; - typedef quantity<unit1_type,Y> from_quantity_type; - typedef quantity<unit2_type,Y> to_quantity_type; + typedef quantity<unit1_type,Y1> from_quantity_type; + typedef quantity<unit2_type,Y2> to_quantity_type; static to_quantity_type |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:30:39
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1077/boost-sandbox/boost/units/systems Modified Files: physical_units.hpp Log Message: Bug Fixes Index: physical_units.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/physical_units.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- physical_units.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ physical_units.hpp 29 Mar 2007 00:30:39 -0000 1.2 @@ -28,31 +28,31 @@ namespace units { /// tag representing length -struct length_tag : public ordinal<1> { }; +struct length_tag : public ordinal<-9> { }; /// tag representing mass -struct mass_tag : public ordinal<2> { }; +struct mass_tag : public ordinal<-8> { }; /// tag representing time -struct time_tag : public ordinal<3> { }; +struct time_tag : public ordinal<-7> { }; /// tag representing electrical current -struct current_tag : public ordinal<4> { }; +struct current_tag : public ordinal<-6> { }; /// tag representing temperature -struct temperature_tag : public ordinal<5> { }; +struct temperature_tag : public ordinal<-5> { }; /// tag representing amount of substance -struct amount_tag : public ordinal<6> { }; +struct amount_tag : public ordinal<-4> { }; /// tag representing luminous intensity - demoted from status as a fundamental SI unit in 1979 -struct intensity_tag : public ordinal<7> { }; +struct intensity_tag : public ordinal<-3> { }; /// tag representing plane angle -struct angle_tag : public ordinal<8> { }; +struct angle_tag : public ordinal<-2> { }; /// tag representing solid angle -struct solid_angle_tag : public ordinal<9> { }; +struct solid_angle_tag : public ordinal<-1> { }; } |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:30:19
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/cgs In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv995/boost-sandbox/boost/units/systems/cgs Modified Files: base.hpp Log Message: Bug Fixes Index: base.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/cgs/base.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- base.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ base.hpp 29 Mar 2007 00:30:17 -0000 1.2 @@ -26,7 +26,7 @@ namespace CGS { /// placeholder class defining CGS unit system -struct system_tag : public ordinal<2> { }; +struct system_tag : public ordinal<-4> { }; } @@ -56,63 +56,63 @@ } // namespace CGS template<> -struct unit_info<CGS::system_tag,length_tag> +struct base_unit_info<length_tag,CGS::system_tag> { static std::string name() { return "centimeter"; } static std::string symbol() { return "cm"; } }; template<> -struct unit_info<CGS::system_tag,mass_tag> +struct base_unit_info<mass_tag,CGS::system_tag> { static std::string name() { return "gram"; } static std::string symbol() { return "g"; } }; template<> -struct unit_info<CGS::system_tag,time_tag> +struct base_unit_info<time_tag,CGS::system_tag> { static std::string name() { return "second"; } static std::string symbol() { return "s"; } }; template<> -struct unit_info<CGS::system_tag,current_tag> +struct base_unit_info<current_tag,CGS::system_tag> { static std::string name() { return "biot"; } static std::string symbol() { return "Bi"; } }; template<> -struct unit_info<CGS::system_tag,temperature_tag> +struct base_unit_info<temperature_tag,CGS::system_tag> { static std::string name() { return "kelvin"; } static std::string symbol() { return "K"; } }; template<> -struct unit_info<CGS::system_tag,amount_tag> +struct base_unit_info<amount_tag,CGS::system_tag> { static std::string name() { return "mole"; } static std::string symbol() { return "mol"; } }; template<> -struct unit_info<CGS::system_tag,intensity_tag> +struct base_unit_info<intensity_tag,CGS::system_tag> { static std::string name() { return "candela"; } static std::string symbol() { return "cd"; } }; template<> -struct unit_info<CGS::system_tag,angle_tag> +struct base_unit_info<angle_tag,CGS::system_tag> { static std::string name() { return "radian"; } static std::string symbol() { return "rd"; } }; template<> -struct unit_info<CGS::system_tag,solid_angle_tag> +struct base_unit_info<solid_angle_tag,CGS::system_tag> { static std::string name() { return "steradian"; } static std::string symbol() { return "sr"; } @@ -122,4 +122,6 @@ } // namespace boost +#include <boost/units/systems/conversions/conversion_headers.hpp> + #endif // BOOST_UNITS_CGS_BASE_HPP |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:29:59
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/si In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv627/boost-sandbox/boost/units/systems/si Modified Files: base.hpp Log Message: Bug Fixes Index: base.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/si/base.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- base.hpp 16 Mar 2007 18:12:45 -0000 1.1.1.1 +++ base.hpp 29 Mar 2007 00:29:53 -0000 1.2 @@ -26,7 +26,7 @@ namespace SI { /// placeholder class defining SI unit system -struct system_tag : public ordinal<1> { }; +struct system_tag : public ordinal<-5> { }; } @@ -56,63 +56,63 @@ } // namespace SI template<> -struct unit_info<SI::system_tag,length_tag> +struct base_unit_info<length_tag,SI::system_tag> { static std::string name() { return "meter"; } static std::string symbol() { return "m"; } }; template<> -struct unit_info<SI::system_tag,mass_tag> +struct base_unit_info<mass_tag,SI::system_tag> { static std::string name() { return "kilogram"; } static std::string symbol() { return "kg"; } }; template<> -struct unit_info<SI::system_tag,time_tag> +struct base_unit_info<time_tag,SI::system_tag> { static std::string name() { return "second"; } static std::string symbol() { return "s"; } }; template<> -struct unit_info<SI::system_tag,current_tag> +struct base_unit_info<current_tag,SI::system_tag> { static std::string name() { return "ampere"; } static std::string symbol() { return "A"; } }; template<> -struct unit_info<SI::system_tag,temperature_tag> +struct base_unit_info<temperature_tag,SI::system_tag> { static std::string name() { return "kelvin"; } static std::string symbol() { return "K"; } }; template<> -struct unit_info<SI::system_tag,amount_tag> +struct base_unit_info<amount_tag,SI::system_tag> { static std::string name() { return "mole"; } static std::string symbol() { return "mol"; } }; template<> -struct unit_info<SI::system_tag,intensity_tag> +struct base_unit_info<intensity_tag,SI::system_tag> { static std::string name() { return "candela"; } static std::string symbol() { return "cd"; } }; template<> -struct unit_info<SI::system_tag,angle_tag> +struct base_unit_info<angle_tag,SI::system_tag> { static std::string name() { return "radian"; } static std::string symbol() { return "rd"; } }; template<> -struct unit_info<SI::system_tag,solid_angle_tag> +struct base_unit_info<solid_angle_tag,SI::system_tag> { static std::string name() { return "steradian"; } static std::string symbol() { return "sr"; } @@ -122,4 +122,6 @@ } // namespace boost +#include <boost/units/systems/conversions/conversion_headers.hpp> + #endif // BOOST_UNITS_SI_BASE_HPP |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:29:41
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv612/boost-sandbox/boost/units/systems Modified Files: abstract.hpp Log Message: Bug Fixes Index: abstract.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/abstract.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- abstract.hpp 16 Mar 2007 18:12:44 -0000 1.1.1.1 +++ abstract.hpp 29 Mar 2007 00:29:34 -0000 1.2 @@ -24,7 +24,7 @@ namespace abstract { /// abstract unit system for pure dimensional analysis -struct system_tag : public ordinal<0> { }; +struct system_tag : public ordinal<-6> { }; } @@ -61,63 +61,63 @@ } // namespace abstract template<> -struct unit_info<abstract::system_tag,length_tag> +struct base_unit_info<length_tag,abstract::system_tag> { static std::string name() { return "[Length]"; } static std::string symbol() { return "[L]"; } }; template<> -struct unit_info<abstract::system_tag,mass_tag> +struct base_unit_info<mass_tag,abstract::system_tag> { static std::string name() { return "[Mass]"; } static std::string symbol() { return "[M]"; } }; template<> -struct unit_info<abstract::system_tag,time_tag> +struct base_unit_info<time_tag,abstract::system_tag> { static std::string name() { return "[Time]"; } static std::string symbol() { return "[T]"; } }; template<> -struct unit_info<abstract::system_tag,current_tag> +struct base_unit_info<current_tag,abstract::system_tag> { static std::string name() { return "[Current]"; } static std::string symbol() { return "[C]"; } }; template<> -struct unit_info<abstract::system_tag,temperature_tag> +struct base_unit_info<temperature_tag,abstract::system_tag> { static std::string name() { return "[Temperature]"; } static std::string symbol() { return "[K]"; } }; template<> -struct unit_info<abstract::system_tag,amount_tag> +struct base_unit_info<amount_tag,abstract::system_tag> { static std::string name() { return "[Amount]"; } static std::string symbol() { return "[A]"; } }; template<> -struct unit_info<abstract::system_tag,intensity_tag> +struct base_unit_info<intensity_tag,abstract::system_tag> { static std::string name() { return "[Intensity]"; } static std::string symbol() { return "[I]"; } }; template<> -struct unit_info<abstract::system_tag,angle_tag> +struct base_unit_info<angle_tag,abstract::system_tag> { static std::string name() { return "[Planar Angle]"; } static std::string symbol() { return "[QP]"; } }; template<> -struct unit_info<abstract::system_tag,solid_angle_tag> +struct base_unit_info<solid_angle_tag,abstract::system_tag> { static std::string name() { return "[Solid Angle]"; } static std::string symbol() { return "[QS]"; } |
|
From: Steven W. <ste...@us...> - 2007-03-29 00:29:23
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv577/boost-sandbox/boost/units Modified Files: quantity.hpp Log Message: Bug Fixes Index: quantity.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/quantity.hpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- quantity.hpp 16 Mar 2007 18:12:42 -0000 1.1.1.1 +++ quantity.hpp 29 Mar 2007 00:29:12 -0000 1.2 @@ -27,6 +27,12 @@ template<class Q1,class Q2> class conversion_helper; template<class Unit,class Y = double> class quantity; +template<class T, class Quantity> +T quantity_reinterpret_cast(const Quantity& q); + +template<class T, class Quantity> +T quantity_reinterpret_cast(Quantity& q); + /// class declaration //template<class System,class Dim,class Y> //class quantity<unit<Dim,System>,Y> @@ -36,6 +42,9 @@ template<class Unit,class Y> class quantity { + friend const Y& quantity_reinterpret_cast(const quantity& q); + friend Y& quantity_reinterpret_cast<>(quantity& q); + friend const Y& quantity_reinterpret_cast<>(quantity& q); public: typedef quantity<Unit,Y> this_type; typedef typename get_dimension<Unit>::type Dim; @@ -54,7 +63,6 @@ this_type& operator=(const this_type& source) { - if (this == &source) return *this; val_ = source.val_; @@ -129,7 +137,6 @@ return *this; } - value_type& value() { return val_; } ///< mutating accessor to value const value_type& value() const { return val_; } ///< constant accessor to value // need to check that add_typeof_helper<value_type,value_type>==value_type @@ -138,6 +145,11 @@ // need to check that subtract_typeof_helper<value_type,value_type>==value_type this_type& operator-=(const this_type& source) { val_ -= source.val_; return *this; } ///< can subtract quantity of same type + this_type& operator++() { ++val_; return *this; } + this_type& operator++(int) { this_type temp(*this); ++*this; return temp; } + this_type operator--() { --val_; return *this; } + this_type operator--(int) { this_type temp(*this); --*this; return temp; } + this_type& operator*=(const value_type& val) { val_ *= val; return *this; } ///< can multiply quantity by scalar this_type& operator/=(const value_type& val) { val_ /= val; return *this; } ///< can divide quantity by scalar @@ -158,6 +170,9 @@ template<class System,class Y> class quantity<unit<dimensionless_type,System>,Y> { + friend const Y& quantity_reinterpret_cast(const quantity& q); + friend Y& quantity_reinterpret_cast<>(quantity& q); + friend const Y& quantity_reinterpret_cast<>(quantity& q); public: typedef quantity<unit<dimensionless_type,System>,Y> this_type; @@ -173,7 +188,6 @@ this_type& operator=(const this_type& source) { - if (this == &source) return *this; val_ = source.val_; @@ -224,6 +238,11 @@ this_type& operator+=(const this_type& source) { val_ += source.val_; return *this; } ///< can add quantity of same type this_type& operator-=(const this_type& source) { val_ -= source.val_; return *this; } ///< can subtract quantity of same type // consider adding *=,/= for dimensionless_type + + this_type& operator++() { ++val_; return *this; } + this_type& operator++(int) { this_type temp(*this); ++*this; return temp; } + this_type operator--() { --val_; return *this; } + this_type operator--(int) { this_type temp(*this); --*this; return temp; } // can multiply or divide by value_type this_type& operator*=(const value_type& val) { val_ *= val; return *this; } ///< can multiply quantity by scalar @@ -253,12 +272,26 @@ namespace units { +/// extract a reference to the value type +template<class T, class Quantity> +T quantity_reinterpret_cast(const Quantity& q) +{ + return(q.val_); +} + +/// extract a (mutable) reference to the value type +template<class T, class Quantity> +T quantity_reinterpret_cast(Quantity& q) +{ + return(q.val_); +} + /// swap quantities template<class Unit,class Y> -inline void swap(quantity<Unit,Y>& rhs, quantity<Unit,Y>& lhs) +inline void swap(quantity<Unit,Y>& lhs, quantity<Unit,Y>& rhs) { using std::swap; - swap(rhs.value(),lhs.value()); + swap(quantity_reinterpret_cast<Y&>(lhs),quantity_reinterpret_cast<Y&>(rhs)); } /// utility class to simplify construction of dimensionless quantities |
|
From: Paul A B. <pbr...@us...> - 2007-03-28 11:46:09
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/math/tools In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18818/boost-sandbox/boost/math/tools Modified Files: Tag: math_toolkit precision.hpp Log Message: Aded comments Index: precision.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/tools/Attic/precision.hpp,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -d -r1.1.2.10 -r1.1.2.11 --- precision.hpp 19 Mar 2007 18:48:49 -0000 1.1.2.10 +++ precision.hpp 28 Mar 2007 11:46:08 -0000 1.1.2.11 @@ -20,6 +20,17 @@ { namespace tools { +// If T is not specialized, the functions digits, max_value and min_value, +// all get synthesised automatically from std::numeric_limits. +// However, if numeric_limits is not specialised for type RealType, +// for example with NTL::RR type, then you will get a compiler error +// when code tries to use these functions, unless you explicitly specialise them. + +// For example if the precision of RealType varies at runtime, +// then numeric_limits support may not be appropriate, +// see boost/math/tools/ntl.hpp for examples like +// template <> NTL::RR max_value<NTL::RR> ... +// See Conceptual Requirements for Real Number Types. template <class T> inline int digits(BOOST_EXPLICIT_TEMPLATE_TYPE(T)) |