refactor(example): small refactoring of examples

This commit is contained in:
Mateusz Pusz committed 2023-04-21 15:18:09 +01:00
1 parent 258a62edcc
commit 318b9e260b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -30,14 +30,14 @@
namespace {
template<class T>
template<typename T>
class measurement {
public:
using value_type = T;
measurement() = default;
constexpr explicit measurement(const value_type& val, const value_type& err = {}) : value_(val)
constexpr explicit measurement(value_type val, const value_type& err = {}) : value_(std::move(val))
{
// it sucks that using declaration cannot be provided for a constructor initializer list
using namespace std;