This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: include/tr1/functional (hash<std::wstring>): Wrap in #ifdef _GLIBCXX_USE_WCHAR_T


Committed as obvious.

It seems
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/hash.cc
should be similarly wrapped, because I see the same error
message in the testsuite log.

	PR libstdc++/20071
	* include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
	_GLIBCXX_USE_WCHAR_T.

Index: include/tr1/functional
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/tr1/functional,v
retrieving revision 1.2
diff -p -c -r1.2 functional
*** include/tr1/functional	18 Feb 2005 07:50:07 -0000	1.2
--- include/tr1/functional	19 Feb 2005 15:29:29 -0000
*************** namespace tr1
*** 135,140 ****
--- 135,141 ----
        }
      };
  
+ #ifdef _GLIBCXX_USE_WCHAR_T
    template <>
      struct hash<std::wstring>
      {
*************** namespace tr1
*** 146,151 ****
--- 147,153 ----
  	return result;
        }
      };
+ #endif
  
  }
  }

brgds, H-P


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