Opened 15 years ago

Closed 14 years ago

#1289 closed Bugs (fixed)

posix_time::time_facet forgets to pass a_ref argument to base class

Reported by: stimming@… Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The default constructor of posix_time::time_facet (with one default argument) forgets to pass that argument value (a_ref) to its base class, date_facet. That one in turn correctly passes that value to std::locale::facet. This bug is present in 1.33.1, 1.34.1, and even SVN, where "cepstein" recently commented out that argument in SVN r39274, but that is the wrong fix. Instead, that argument must be passed to the base class because std::locale::facet indeed uses that value.

A patch against 1.34.1 will be attached. If you want to patch this against SVN, first revert r39274 in the file time_facet.hpp, then apply the patch.

Attachments (1)

a.diff (639 bytes ) - added by stimming@… 15 years ago.
Patch for boost/date_time/time_facet.hpp to fix missed argument passing

Download all attachments as: .zip

Change History (2)

by stimming@…, 15 years ago

Attachment: a.diff added

Patch for boost/date_time/time_facet.hpp to fix missed argument passing

comment:1 by Andrey Semashev, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.