SCM Repositories - boost


Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12, Thu Apr 6 21:51:12 2006 UTC revision 1.13, Mon Sep 18 05:32:54 2006 UTC
# Line 214  Line 214 
214      // use typeid() comparison, e.g., when our types may travel across      // use typeid() comparison, e.g., when our types may travel across
215      // different shared libraries.      // different shared libraries.
216      template<typename ValueType>      template<typename ValueType>
217      ValueType * unsafe_any_cast(any * operand)      inline ValueType * unsafe_any_cast(any * operand)
218      {      {
219          return &static_cast<any::holder<ValueType> *>(operand->content)->held;          return &static_cast<any::holder<ValueType> *>(operand->content)->held;
220      }      }
221    
222      template<typename ValueType>      template<typename ValueType>
223      const ValueType * unsafe_any_cast(const any * operand)      inline const ValueType * unsafe_any_cast(const any * operand)
224      {      {
225          return any_cast<ValueType>(const_cast<any *>(operand));          return unsafe_any_cast<ValueType>(const_cast<any *>(operand));
226      }      }
227  }  }
228    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13