------- Comment #3 from redi at gcc dot gnu dot org  2009-08-10 15:09 -------
For now, the workaround is to provide some or all of these explicit
instantiations in your program:

namespace std
{
    template
    basic_ofstream<char>::basic_ofstream(string const&, ios_base::openmode);

    template
    void 
    basic_ofstream<char>::open(string const&, ios_base::openmode);

    template
    basic_ifstream<char>::basic_ifstream(string const&, ios_base::openmode);

    template
    void 
    basic_ifstream<char>::open(string const&, ios_base::openmode);

    template
    basic_fstream<char>::basic_fstream(string const&, ios_base::openmode);

    template
    void 
    basic_fstream<char>::open(string const&, ios_base::openmode);

    template
    basic_filebuf<char>*
    basic_filebuf<char>::open(string const&, ios_base::openmode);
}


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.1 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-10 15:09:05
               date|                            |
            Summary|Unable to link fstream open |[C++0x] Unable to link
                   |and ctor with std::string   |fstream open and ctor with
                   |argument.                   |std::string argument.


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

Reply via email to