[V3 PATCH] Fix for defect report libstdc++/1886

bumgard@roguewave.com bumgard@roguewave.com
Wed Feb 14 14:34:00 GMT 2001


This patch is required to allow file streams to be instantiated
on types other than char and wchar_t.

I am not sure this is the best way to solve this problem, but
it does follow the convention that the environment specific
implementation is 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 */
  
  



More information about the Libstdc++ mailing list