Changeset 2503


Ignore:
Timestamp:
Jun 29, 2011, 3:15:03 PM (12 years ago)
Author:
Peter
Message:

avoid long line

File:
1 edited

Legend:

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

    r2502 r2503  
    301301      return (1-j+floor(j))*first[i] + (j-floor(j))*first[i+1];
    302302    }
    303 
    304     std::vector<typename std::iterator_traits<RandomAccessIterator>::value_type>
    305       v_copy;
     303    using std::iterator_traits;
     304    typedef typename iterator_traits<RandomAccessIterator>::value_type value_t;
     305    std::vector<value_t> v_copy;
    306306    v_copy.reserve(std::distance(first,last));
    307307    std::copy(first, last, std::back_inserter(v_copy));
Note: See TracChangeset for help on using the changeset viewer.