Ignore:
Timestamp:
Sep 15, 2008, 8:47:37 PM (13 years ago)
Author:
Peter
Message:

Added structure to deprecate functions. I chose to use a gcc style,
and it is tested in configure whether the compiler supports it. If not
the deprecation has no effect. Using a deprecated function will cause
a compiler warning. In gcc the warning can be turned off with
'-Wno-deprecated'. Possibly we should turn off the warning by default,
so a user has to turn it on by defining
-DYAT_DISABLE_DEPRECATED...

fixes #367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/utility.h

    r1487 r1500  
    3131#include "yat/classifier/DataLookupWeighted1D.h"
    3232#include "yat/classifier/Target.h"
     33#include "yat/utility/deprecate.h"
    3334#include "yat/utility/VectorBase.h"
    3435#include "yat/utility/yat_assert.h"
     
    5657  */
    5758  template <class T>
    58   double percentile(T first, T last, double p, bool sorted=false);
     59  double percentile(T first, T last, double p, bool sorted=false) YAT_DEPRECATE;
    5960 
    6061  /**
Note: See TracChangeset for help on using the changeset viewer.