Changes between Version 84 and Version 85 of LibrariesUnderConstruction
- Timestamp:
- Oct 27, 2009, 3:09:57 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibrariesUnderConstruction
v84 v85 279 279 280 280 * '''Author(s):''' Vicente J. Botet Escribá 281 * '''Version:''' 0. 3281 * '''Version:''' 0.4 282 282 * '''State:''' Stable - Formal review requested - Looking for a review manager 283 * '''Last upload:'''2009 October 2 2283 * '''Last upload:'''2009 October 27 284 284 * '''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] 285 285 * '''Categories:''' [#Utilities Utilities] 286 286 * '''Description:''' Generic explicit conversion between unrelated types. 287 288 The 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 290 The 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 292 For 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. 287 293 288 294 Boost.Conversion provides: