vm::ref: remove erroneous default constructor
This commit is contained in:
@@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
#include "util/to_endian.hpp"
|
#include "util/to_endian.hpp"
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Weffc++"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace vm
|
namespace vm
|
||||||
{
|
{
|
||||||
template <typename T, typename AT>
|
template <typename T, typename AT>
|
||||||
@@ -24,8 +29,6 @@ namespace vm
|
|||||||
using type = T;
|
using type = T;
|
||||||
using addr_type = std::remove_cv_t<AT>;
|
using addr_type = std::remove_cv_t<AT>;
|
||||||
|
|
||||||
_ref_base() = default;
|
|
||||||
|
|
||||||
_ref_base(const _ref_base&) = default;
|
_ref_base(const _ref_base&) = default;
|
||||||
|
|
||||||
_ref_base(vm::addr_t addr)
|
_ref_base(vm::addr_t addr)
|
||||||
@@ -178,6 +181,10 @@ namespace vm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
// Change AT endianness to BE/LE
|
// Change AT endianness to BE/LE
|
||||||
template<typename T, typename AT, bool Se>
|
template<typename T, typename AT, bool Se>
|
||||||
struct to_se<vm::_ref_base<T, AT>, Se>
|
struct to_se<vm::_ref_base<T, AT>, Se>
|
||||||
|
|||||||
Reference in New Issue
Block a user