~noskcaj/ubuntu/saucy/openwalnut/liberation

« back to all changes in this revision

Viewing changes to src/core/common/WPropertyStruct.h

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-05-24 03:12:03 UTC
  • Revision ID: package-import@ubuntu.com-20130524031203-l5g1lzm1vd83fupi
Tags: 1.3.1+hg5849-1ubuntu1
Cherrypick boost1.53 pointer cast fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
    typename boost::mpl::at< TypeVector, boost::mpl::size_t< N > >::type getProperty()
279
279
    {
280
280
        typedef typename boost::mpl::at< TypeVector, boost::mpl::size_t< N > >::type::element_type TargetType;
281
 
        return boost::shared_dynamic_cast< TargetType >( getProperty( N ) );
 
281
        return boost::dynamic_pointer_cast< TargetType >( getProperty( N ) );
282
282
    }
283
283
 
284
284
    /**
292
292
    typename boost::mpl::at< TypeVector, boost::mpl::size_t< N > >::type::element_type::ConstSPtr getProperty() const
293
293
    {
294
294
        typedef typename boost::mpl::at< TypeVector, boost::mpl::size_t< N > >::type::element_type TargetType;
295
 
        return boost::shared_dynamic_cast< const TargetType >( getProperty( N ) );
 
295
        return boost::dynamic_pointer_cast< const TargetType >( getProperty( N ) );
296
296
    }
297
297
 
298
298
    /**
428
428
    virtual bool set( boost::shared_ptr< WPropertyBase > value, bool recommendedOnly = false )
429
429
    {
430
430
        // is this the same type as we are?
431
 
        typename WPropertyStructType::SPtr v = boost::shared_dynamic_cast< WPropertyStructType >( value );
 
431
        typename WPropertyStructType::SPtr v = boost::dynamic_pointer_cast< WPropertyStructType >( value );
432
432
        if( !v )
433
433
        {
434
434
            // it is not a WPropertyStruct with the same type