Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-05-06 08:54:12


Bugs item #949189, was opened at 2004-05-06 15:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=949189&group_id=7586

Category: date_time
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Pieter (morban)
Assigned to: Jeff Garland (az_sw_dude)
Summary: typos in wrapping_int.hpp

Initial Comment:
In the following code:

template<typename int_type_, int_type_ wrap_min,
int_type_ wrap_max>
class wrapping_int2 {
public:
  typedef int_type_ int_type;
  static unsigned long wrap_value() {return wrap_max;}
  static unsigned long min_value() {return wrap_min;}
...

the last two lines should probably read (changing return
types and the first function's name):

  static int_type max_value() {return wrap_max;}
  static int_type min_value() {return wrap_min;}

May I suggest renaming this class to "top_wrapping_int"
in reaction to the comment above it?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=949189&group_id=7586

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk