netlist: Hopefully fix MSVC compile. (nw)
This commit is contained in:
parent
f1cf2733a6
commit
470c416cc3
@ -441,7 +441,7 @@ namespace plib {
|
|||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
// FIXME: needs a separate file
|
// FIXME: needs a separate file
|
||||||
template <class T, std::size_t ALIGN = alignof(T)>
|
template <class T, std::size_t ALIGN = PALIGN_VECTOROPT>
|
||||||
class aligned_vector : public std::vector<T, aligned_allocator<T, ALIGN>>
|
class aligned_vector : public std::vector<T, aligned_allocator<T, ALIGN>>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -455,6 +455,9 @@ namespace plib {
|
|||||||
|
|
||||||
using base::base;
|
using base::base;
|
||||||
|
|
||||||
|
base & as_base() noexcept { return *this; }
|
||||||
|
const base & as_base() const noexcept { return *this; }
|
||||||
|
|
||||||
C14CONSTEXPR reference operator[](size_type i) noexcept
|
C14CONSTEXPR reference operator[](size_type i) noexcept
|
||||||
{
|
{
|
||||||
return assume_aligned_ptr<T, ALIGN>(&(base::operator[](0)))[i];
|
return assume_aligned_ptr<T, ALIGN>(&(base::operator[](0)))[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user