mirror of
https://github.com/holub/mame
synced 2025-10-04 08:28:39 +03:00
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
|
||||
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>>
|
||||
{
|
||||
public:
|
||||
@ -455,6 +455,9 @@ namespace plib {
|
||||
|
||||
using base::base;
|
||||
|
||||
base & as_base() noexcept { return *this; }
|
||||
const base & as_base() const noexcept { return *this; }
|
||||
|
||||
C14CONSTEXPR reference operator[](size_type i) noexcept
|
||||
{
|
||||
return assume_aligned_ptr<T, ALIGN>(&(base::operator[](0)))[i];
|
||||
|
Loading…
Reference in New Issue
Block a user