Skip to content

Commit 93d50c2

Browse files
authored
Fix default constructor implementation
Make default constructor behavior as in build-in type
1 parent dfa236b commit 93d50c2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

include/long_int.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//
3131
////////////////////////////////////////////////////////////////////////////////////////////////////
3232
//
33-
// $Id:$
33+
// $Id: long_int.h 151 2021-09-07 11:33:21Z ykalmykov $
3434
//
3535
////////////////////////////////////////////////////////////////////////////////////////////////////
3636

@@ -59,7 +59,7 @@ class long_int_t : public long_uint_t<native_t, size>
5959
////////////////////////////////////////////////////////////////////////////////////////////////
6060
// construction/destruction
6161

62-
constexpr long_int_t() noexcept;
62+
constexpr long_int_t() noexcept = default;
6363
constexpr long_int_t(const long_int_t& that) noexcept = default;
6464
constexpr long_int_t(long_int_t&& that) noexcept = default;
6565
constexpr long_int_t(const long_uint_t<native_t, size>& that) noexcept;
@@ -140,11 +140,6 @@ constexpr type_t muldiv(const type_t& value, const type_t& multiplier, const typ
140140
////////////////////////////////////////////////////////////////////////////////////////////////////
141141
// construction/destruction
142142

143-
template<typename native_t, uint_t size>
144-
constexpr long_int_t<native_t, size>::long_int_t() noexcept
145-
{
146-
}
147-
148143
template<typename native_t, uint_t size>
149144
constexpr long_int_t<native_t, size>::long_int_t(const long_uint_t<native_t, size>& that) noexcept
150145
: long_uint_t<native_t, size>(that)

0 commit comments

Comments
 (0)