Changeset 488 for trunk


Ignore:
Timestamp:
03/08/16 08:08:06 (9 years ago)
Author:
epyon
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/math/basic.hh

    r486 r488  
    305305
    306306                template < typename T, typename enable_if< is_floating_point<T>::value >::type* = nullptr >
    307                 constexpr T smoothstep( T edge0, T edge1, T x )
     307                /*constexpr*/ T smoothstep( T edge0, T edge1, T x )
    308308                {
    309309                        T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) );
     
    312312
    313313                template < typename T, typename enable_if< is_fp_vec<T>::value >::type* = nullptr >
    314                 constexpr T smoothstep( const T& edge0, const T& edge1, const T& x )
     314                /*constexpr*/ T smoothstep( const T& edge0, const T& edge1, const T& x )
    315315                {
    316316                        T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) );
     
    319319
    320320                template < typename T, typename enable_if< is_fp_vec<T>::value >::type* = nullptr >
    321                 constexpr T smoothstep( value_type_t<T> edge0, value_type_t<T> edge1, const T& x )
     321                /*constexpr*/ T smoothstep( value_type_t<T> edge0, value_type_t<T> edge1, const T& x )
    322322                {
    323323                        T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) );
Note: See TracChangeset for help on using the changeset viewer.