Revert "Revert "Turn off extern templates for most uses.""

This reverts commit 98c4e404ca.

Bug: http://b/25560311
Change-Id: Ied8afaf8f7cf29e74e521de5170e4ff30144f546
This commit is contained in:
Dan Albert
2015-11-09 12:34:21 -08:00
parent fc61c12241
commit 75746a3228
6 changed files with 15 additions and 1 deletions

View File

@@ -649,7 +649,7 @@ template <unsigned> struct __static_assert_check {};
#endif
#ifndef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#define _LIBCPP_EXTERN_TEMPLATE(...)
#endif
#ifndef _LIBCPP_EXTERN_TEMPLATE2

View File

@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#undef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#include "algorithm"
#include "random"
#include "mutex"

View File

@@ -9,6 +9,9 @@
#include "__config"
#undef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#include "ios"
#include <stdlib.h>

View File

@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#undef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
// On Solaris, we need to define something to make the C99 parts of localeconv
// visible.
#ifdef __sun__

View File

@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#undef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#include "string"
#include "cstdlib"
#include "cwchar"

View File

@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#undef _LIBCPP_EXTERN_TEMPLATE
#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
#include "valarray"
_LIBCPP_BEGIN_NAMESPACE_STD