summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Yang <ezyang@fb.com>2018-09-19 16:29:41 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-09-19 16:45:53 -0700
commitf4d25039cbb5481f90f8aa9853d8ab25ef88a119 (patch)
tree08eea877178a05def7ce80dd007c93486439a285
parentb06e35b568a44d32324707fc272fd11cc6fa6e1a (diff)
downloadpytorch-f4d25039cbb5481f90f8aa9853d8ab25ef88a119.tar.gz
pytorch-f4d25039cbb5481f90f8aa9853d8ab25ef88a119.tar.bz2
pytorch-f4d25039cbb5481f90f8aa9853d8ab25ef88a119.zip
Fix Array.h when compiled with C++17 (#11816)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/11816 The file isn't in the std:: namespace, so is_same must be qualified. Reviewed By: smessmer Differential Revision: D9923774 fbshipit-source-id: 126532e27f08b5616ca46be1293d5d837920f588
-rw-r--r--caffe2/utils/Array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/caffe2/utils/Array.h b/caffe2/utils/Array.h
index 3217198dd8..122147769e 100644
--- a/caffe2/utils/Array.h
+++ b/caffe2/utils/Array.h
@@ -202,7 +202,7 @@ public:
#if defined(__cpp_deduction_guides) && __cpp_deduction_guides >= 201606
template<typename _Tp, typename... _Up>
array(_Tp, _Up...) ->
- array<enable_if_t<(is_same_v<_Tp, _Up> && ...), _Tp>, 1 + sizeof...(_Up)>;
+ array<enable_if_t<(std::is_same<_Tp, _Up>::value && ...), _Tp>, 1 + sizeof...(_Up)>;
#endif
// Array comparisons.