This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[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 */
  
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]