Changeset 3259


Ignore:
Timestamp:
Jun 9, 2014, 4:52:49 PM (7 years ago)
Author:
Peter
Message:

deprecated class Range. closes #786

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3254 r3259  
    55version 0.13 (released NOT YET)
    66  - utility::get separates types in map and passed key (ticket #799)
     7  - utility::Range is deprecated (ticket #786)
    78
    89  A complete list of closed tickets can be found here [[br]]
  • trunk/test/range.cc

    r2919 r3259  
    2121*/
    2222
     23// avoid deprecate warnings
     24#define YAT_DEPRECATE
     25
    2326#include <config.h>
    2427
     
    3033
    3134int main(int argc, char* argv[])
    32 { 
     35{
    3336  using namespace theplu::yat::utility;
    3437  theplu::yat::test::Suite suite(argc, argv);
  • trunk/yat/utility/Range.h

    r3210 r3259  
    2424*/
    2525
     26#include "deprecate.h"
     27
    2628#include <algorithm>
    2729
     
    3941     \since New in yat 0.5
    4042
    41      \see <a href="\boost_url/range/index.html">Boost Range class</a>,
    42      which provides a more extensive interface.
     43     \deprecated Provided for backward compatibility with the 0.12 API.
     44     Use <a href="\boost_url/range/index.html">Boost Range class</a>
     45     instead, which provides a more extensive interface.
    4346  */
    4447  template<typename T>
     
    5558    */
    5659    // For STL container usage
    57     Range(void);
     60    Range(void) YAT_DEPRECATE_GCC_PRE4_3;
    5861
    5962    /**
    6063       \brief Constructor
    6164    */
    62     Range(T first, T last);
     65    Range(T first, T last) YAT_DEPRECATE_GCC_PRE4_3;
    6366
    6467    /**
     
    9295    T first_;
    9396    T last_;
    94   };
     97  } YAT_DEPRECATE;
    9598
    9699  /**
Note: See TracChangeset for help on using the changeset viewer.