Opened 11 years ago

Closed 11 years ago

#685 closed defect (fixed)

compiler warning about default argument in utility::load

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.8
Component: utility Version: trunk
Keywords: Cc:

Description

../../../yat/utility/utility.h(333): warning #845: specifying a default argument when redeclaring an unreferenced function template is nonstandard
  	void load(std::istream& is, std::vector<T>& vec, char sep='\0')
  	     ^

We could avoid this compiler warning by having two functions load(3) and load(2) where the latter calls the former with third argument sep='\0'.

Change History (2)

comment:1 Changed 11 years ago by Peter

Same thing for statistics::percentile

comment:2 Changed 11 years ago by Peter

Resolution: fixed
Status: newclosed

(In [2625]) fixes #685

Note: See TracTickets for help on using tickets.