Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2003-08-28 12:18:31

Bugs item #796799, was opened at 2003-08-28 12:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Hao Huang (huanghao)
Assigned to: Nobody/Anonymous (nobody)
Summary: operator<<(ostream &, const greg_month &) broken

Initial Comment:
In greg_facet, the "os << .... << m" line will cause a

recursion that will never return.

  template <class charT, class traits>


  std::basic_ostream<charT, traits>&

  operator<<(std::basic_ostream<charT, traits>& os,

const greg_month& m)




charT> greg_month_formatter;

    std::locale locale = os.getloc();

    if (std::has_facet<greg_base_facet>(locale)) {

      const greg_base_facet& f =


      greg_month_formatter::format_month(m, os, f);


    else { //default to numeric

      os << std::setw(2) << std::setfill('0') << m;


    return os;



You can respond by visiting:

This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at