------- Comment #1 from tsyvarev at ispras dot ru  2008-11-20 10:57 -------
Example:

#include <iostream>
#include <locale>
using namespace std;

class my_numpunct : public numpunct<char>
{
protected:
    string do_falsename() const {return "-no-";}
};

int main()
{
    locale my_loc = locale(locale::classic(), new my_numpunct());
    cout.imbue(my_loc);
    cout.width(6);
    bool b = false;
    cout << internal << boolalpha << b << endl;
    return 0;
}

output "-  no-" instead of "  -no-"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38196

Reply via email to