c++ - '_IsFirstIteration' : unreferenced formal parameter in std::lower_bound -


i'm getting famous c4100 warning when trying use std::lower_bound function.

this code:

typedef std::vector<sdtsposition> tptsfileoffsetvector;  tptsfileoffsetvector::iterator lowest_nearest = std::lower_bound(m_position_table.begin(),      m_position_table.end(), sdtsposition(dts_position, 0), sdtsposition()); 

the comparator inside struct:

// positioning struct sdtsposition {     sdtsposition()      {}      sdtsposition(int d, int p)       {                dts = d;                 pos = p;     }     int dts;     int pos;      bool operator()(const sdtsposition & left, const sdtsposition & right) const     {         return left.dts < right.dts;             }    }; 

the compilation warning points me code in stl:

template<class _fwdit, class _pr> inline void __clrcall_or_cdecl _debug_order_single2(_fwdit _first, _fwdit _last, _pr _pred, bool _isfirstiteration,     const wchar_t *_file, unsigned int _line, forward_iterator_tag) {   // test if _first , ++_first ordered predicate, forward iterators if (_first != _last)     {     _fwdit _next = _first;     if (++_next != _last)         if (_debug_lt_pred(_pred, *_next, *_first))             _debug_error2("sequence not ordered", _file, _line);     } } 

where there indeed no reference said boolean variable.

am doing wrong? (this vs2005 way)

at first i'd not doing wrong.

it seems me forgot use parameter or not update signature , forgot silence warning function.

i not worry.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -