From 91f55194d37b7c89b9cb62bb7dfd52ce827488ca Mon Sep 17 00:00:00 2001 From: "konrad.kraemer" Date: Wed, 29 May 2024 10:11:23 +0200 Subject: [PATCH] double constructor is again implicit --- include/etr_bits/Vector/Constructors.hpp | 9 ++++----- tests/BaseStore_Tests.cpp | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/etr_bits/Vector/Constructors.hpp b/include/etr_bits/Vector/Constructors.hpp index 87aff35..b7186b5 100644 --- a/include/etr_bits/Vector/Constructors.hpp +++ b/include/etr_bits/Vector/Constructors.hpp @@ -5,11 +5,11 @@ template Vec(T2 n) = delete; // internally used -explicit Vec(SI &sz) : d(sz.sz) { +explicit Vec(SI &sz) : d(sz.sz) { std::cout << "constructor test1" << std::endl; } explicit Vec(SI &&sz) : d(sz.sz) { - std::cout << "constructor test2" << std::endl; + std::cout << "constructor test2" << std::endl; } // move constructors @@ -105,7 +105,7 @@ explicit Vec(int sz) : d(1) { d[0] = static_cast(sz); } explicit Vec(std::size_t sz) : d(1) { d[0] = sz; } -explicit Vec(double sz) : d(1) { d[0] = sz; } +Vec(double sz) : d(1) { d[0] = sz; } #ifdef STANDALONE_ETR Vec(bool b) : d(1) { d[0] = static_cast(b); } @@ -113,8 +113,7 @@ Vec(bool b) : d(1) { d[0] = static_cast(b); } Vec(Rboolean b) : d(1) { d[0] = static_cast(b); } #endif -explicit Vec() : d() { std::cout << "constructor test4" << std::endl; -} +explicit Vec() : d() { std::cout << "constructor test4" << std::endl; } explicit Vec(std::size_t rows, std::size_t cols) : d(rows * cols) { d.setMatrix(true, rows, cols); } diff --git a/tests/BaseStore_Tests.cpp b/tests/BaseStore_Tests.cpp index faee252..7d2449f 100644 --- a/tests/BaseStore_Tests.cpp +++ b/tests/BaseStore_Tests.cpp @@ -124,6 +124,6 @@ void test_basestore() { } int main(int argc, char *argv[]) { - test_basestore(); + // test_basestore(); return 0; }