Commit e0274b6c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

proper fix for MSVC

parent 338ca14b
Pipeline #73191 passed with stages
in 11 minutes and 49 seconds
......@@ -159,12 +159,13 @@ template<typename T> class fmav: public fmav_info, public membuf<T>
: fmav_info(info), membuf<T>(d_, rw_) {}
fmav(const T* d_, const fmav_info &info)
: fmav_info(info), membuf<T>(d_) {}
fmav(const fmav &other) = default;
#if defined(_MSC_VER)
// MSVC is broken
fmav(const fmav &other) : fmav_info(other), membuf<T>(other) {};
fmav(fmav &other) : fmav_info(other), membuf<T>(other) {}
fmav(fmav &&other) : fmav_info(other), membuf<T>(other) {}
#else
fmav(const fmav &other) = default;
fmav(fmav &other) = default;
fmav(fmav &&other) = default;
#endif
......@@ -332,12 +333,13 @@ template<typename T, size_t ndim> class mav: public mav_info<ndim>, public membu
: mav_info<ndim>(shp_), membuf<T>(d_, rw_) {}
mav(const array<size_t,ndim> &shp_)
: mav_info<ndim>(shp_), membuf<T>(size()) {}
mav(const mav &other) = default;
#if defined(_MSC_VER)
// MSVC is broken
mav(const mav &other) : mav_info<ndim>(other), membuf<T>(other) {}
mav(mav &other): mav_info<ndim>(other), membuf<T>(other) {}
mav(mav &&other): mav_info<ndim>(other), membuf<T>(other) {}
#else
mav(const mav &other) = default;
mav(mav &other) = default;
mav(mav &&other) = default;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment