Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72945 - sandbox/conversion/boost/conversion
From: vicente.botet_at_[hidden]
Date: 2011-07-06 20:59:02


Author: viboes
Date: 2011-07-06 20:59:01 EDT (Wed, 06 Jul 2011)
New Revision: 72945
URL: http://svn.boost.org/trac/boost/changeset/72945

Log:
conversion: update comments
Text files modified:
   sandbox/conversion/boost/conversion/try_assign_to.hpp | 7 +++++--
   sandbox/conversion/boost/conversion/try_convert_to.hpp | 2 +-
   2 files changed, 6 insertions(+), 3 deletions(-)

Modified: sandbox/conversion/boost/conversion/try_assign_to.hpp
==============================================================================
--- sandbox/conversion/boost/conversion/try_assign_to.hpp (original)
+++ sandbox/conversion/boost/conversion/try_assign_to.hpp 2011-07-06 20:59:01 EDT (Wed, 06 Jul 2011)
@@ -75,8 +75,8 @@
 
     //! specialization for c-arrays
     //!
- template < typename Target, typename Source, std::size_t N, class Enable >
- struct try_assigner<Target[N],Source[N],Enable>
+ template < typename Target, typename Source, std::size_t N >
+ struct try_assigner<Target[N],Source[N]>
     {
       //! @Effects Converts the @c from parameter to the @c to parameter, using by default the assignment operator on each vector element.
       //! @NoThrow
@@ -132,6 +132,8 @@
 #endif
   namespace conversion {
 
+ //! @brief try to assign a target from a source
+ //!
     //! @tparam Target target type of the conversion.
     //! @tparam Source source type of the conversion.
     //! @Effects Converts the @c from parameter to the @c to parameter, using the @c try_assigner customization point.
@@ -142,6 +144,7 @@
     //! Target t;
     //! Source s;
     //! bool b = boost::conversion::try_assign_to(t,s);
+ //! @endcode
     template <typename Target, typename Source>
     bool try_assign_to(Target& to, const Source& from)
     {

Modified: sandbox/conversion/boost/conversion/try_convert_to.hpp
==============================================================================
--- sandbox/conversion/boost/conversion/try_convert_to.hpp (original)
+++ sandbox/conversion/boost/conversion/try_convert_to.hpp 2011-07-06 20:59:01 EDT (Wed, 06 Jul 2011)
@@ -96,7 +96,7 @@
     //! @tparam Target target type of the conversion.
     //! @tparam Source source type of the conversion.
     //!
- //! @Effects Converts the @c from parameter to an instance of the @c Target type, using by default the conversion operator or copy constructor.
+ //! @Effects Converts the @c from parameter to an instance of the @c Target type, using the @c tyr_converter customization point.
     //! @NoThrow
     //! @Returns A optional<Target> uninitialized when conversion fails.
     //! @Example


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk