Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeichi Takahashi <keichi.t@me.com>2021-09-10 21:07:41 +0300
committerCopybara-Service <copybara-worker@google.com>2021-09-10 21:08:20 +0300
commit34f1aa7f3b8712aee21883da774cf11020d09b38 (patch)
tree1ed12c0c58024baf08b981dc9166058fb7a339a7
parent9c56af3fce210a8a103eda19bd6f47c08a9e3d90 (diff)
Fix error when compiling ruy_test_overflow_dst_zero_point with GCC
This fixes the following compilation error: ``` In file included from /usr/include/c++/10/vector:67, from /home/keichi/Projects/ruy/ruy/test_overflow_dst_zero_point.cc:32: /usr/include/c++/10/bits/stl_vector.h: In instantiation of ‘class std::vector<const signed char>’: /home/keichi/Projects/ruy/ruy/test_overflow_dst_zero_point.cc:75:24: required from here /usr/include/c++/10/bits/stl_vector.h:401:66: error: static assertion failed: std::vector must have a non-const, non-volatile value_type 401 | static_assert(is_same<typename remove_cv<_Tp>::type, _Tp>::value, | ^~~~~ ``` Closes https://github.com/google/ruy/pull/278 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/ruy/pull/278 from keichi:fix-compilation-err 2e30471e9ce525f3a62337078cf2e80f17c966ff PiperOrigin-RevId: 395965795
-rw-r--r--ruy/test_overflow_dst_zero_point.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruy/test_overflow_dst_zero_point.cc b/ruy/test_overflow_dst_zero_point.cc
index db1f08d..96ee38c 100644
--- a/ruy/test_overflow_dst_zero_point.cc
+++ b/ruy/test_overflow_dst_zero_point.cc
@@ -58,7 +58,7 @@ void TestOverflowingAdditionOfDestinationZeroPoint(ruy::Context* context,
? std::numeric_limits<DstScalar>::max()
: std::numeric_limits<DstScalar>::min();
- const std::vector<const std::int8_t> lhs_data(1, 0);
+ const std::vector<std::int8_t> lhs_data(1, 0);
const std::vector<std::int8_t> rhs_data(cols, 0);
std::vector<DstScalar> dst_data(cols, 0);