Changeset 1500 for trunk/yat/classifier


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/classifier/Target.h

    r1487 r1500  
    2626*/
    2727
     28#include "yat/utility/deprecate.h"
    2829#include "yat/utility/Exception.h"
    2930
     
    161162    /// API. Use operator().
    162163    ///
    163     size_t operator[](size_t sample) const;
     164    size_t operator[](size_t sample) const YAT_DEPRECATE;
    164165
    165166    ///
Note: See TracChangeset for help on using the changeset viewer.