This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [V3 PATCH] Fix for defect report libstdc++/1886 - Missing basic_file impl
- To: libstdc++ at gcc dot gnu dot org
- Subject: RE: [V3 PATCH] Fix for defect report libstdc++/1886 - Missing basic_file impl
- From: Greg Bumgardner <bumgard at roguewave dot com>
- Date: Fri, 16 Feb 2001 13:16:35 -0800
Oops, this change won't work - I guess c++io.cc (c_io_xxxio.cc) file is not
installed (duh). Maybe changing acinclude.m4 to link c_io_xxxio.cc as
include/bits/basic_file.tcc would solve the problem? Or should c++io.cc file
(and maybe others) be installed too?
-g.b.
> -----Original Message-----
> From: bumgard@roguewave.com [mailto:bumgard@roguewave.com]
> Sent: Wednesday, February 14, 2001 4:13 PM
> To: bumgard@roguewave.com; libstdc++@gcc.gnu.org;
> gcc-patches@gcc.gnu.org
> Subject: [V3 PATCH] Fix for defect report libstdc++/1886
>
>
> This patch is required to allow file streams to be instantiated
> on types other than char and wchar_t.
>
> I am not sure if this is the best way to solve this problem, but
> it does follow the convention that the environment-specific
> implementation be kept outside of the common bits directory.
>
>
> 2001-02-13 Greg Bumgardner <bumgard@roguewave.com>
>
> * libstdc++-v3/include/bits/basic_file.h: Add #include for
> bits/c++io.cc to get implementation
>
> Index: gcc/libstdc++-v3/include/bits/basic_file.h
> diff -c gcc/libstdc++-v3/include/bits/basic_file.h:1.1.1.1
> gcc/libstdc++-v3/include/bits/basic_file.h:1.1.1.1.10.1
> *** gcc/libstdc++-v3/include/bits/basic_file.h:1.1.1.1
> Tue Feb 13 00:19:31 2001
> --- gcc/libstdc++-v3/include/bits/basic_file.h Tue Feb
> 13 11:30:20 2001
> ***************
> *** 239,244 ****
> --- 239,254 ----
> };
> } // namespace std
>
> + // Include the environment-specific implementation
> + // TODO: How would this work if export was supported?
> +
> + #ifdef _GLIBCC_NO_TEMPLATE_EXPORT
> + #define export
> + #ifdef _GLIBCC_FULLY_COMPLIANT_HEADERS
> + #include <bits/c++io.cc>
> + #endif
> + #endif
> +
> #endif /* _CPP_BASIC_FILE */
>
>
>