Changes between Version 84 and Version 85 of LibrariesUnderConstruction


Ignore:
Timestamp:
Oct 27, 2009, 3:09:57 PM (13 years ago)
Author:
viboes
Comment:

Boost.Conversion v0.4

Legend:

Unmodified
Added
Removed
Modified
  • LibrariesUnderConstruction

    v84 v85  
    279279
    280280 * '''Author(s):''' Vicente J. Botet Escribá
    281  * '''Version:''' 0.3
     281 * '''Version:''' 0.4
    282282 * '''State:''' Stable - Formal review requested - Looking for a review manager
    283  * '''Last upload:'''2009 October 22
     283 * '''Last upload:'''2009 October 27
    284284 * '''Links:''' [http://www.boostpro.com/vault/index.php?action=downloadfile&filename=conversion.zip&directory=Utilities& Boost Vault] [http://svn.boost.org/svn/boost/sandbox/conversion Boost Sandbox] [http://svn.boost.org/svn/boost/sandbox/conversion/libs/conversion/doc/index.html Documentation]
    285285 * '''Categories:''' [#Utilities Utilities]
    286286 * '''Description:'''  Generic explicit conversion between unrelated types.
     287
     288The template function convert_to  allows to convert a source type to a target type, using argument dependent lookup to select a specialized convert_to function if available. If no specialized convert_to function is available, boost::conversion::convert_to is used.
     289
     290The generic convert_to function requires that the elements to be converted are assignable and copy constructible. It is implemented using the Target copy construction from a Source or the Source conversion operator Target - this is sometimes unavailable.
     291
     292For standard types, we can not add a specialized convert_to function on the namespace std. The alternative to using argument dependent lookup in this situation is to provide a template specialization of boost::conversion::convert_to for every pair of standard types that requires a specialized convert_to.
    287293
    288294Boost.Conversion provides: