This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[V3 PATCH] Fix for defect report libstdc++/1886
- To: bumgard at roguewave dot com, libstdc++ at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Subject: [V3 PATCH] Fix for defect report libstdc++/1886
- From: bumgard at roguewave dot com
- Date: 15 Feb 2001 00:13:19 -0000
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 */