Ticket #4440: size_0_vector_msvc.patch

File size_0_vector_msvc.patch, 503 bytes (added by jesseperla@…, 12 years ago)
  • storage.hpp

     
    464464
    465465    private:
    466466        size_type size_;
     467// MSVC does not like arrays of size 0 in base classes.  Hence, this conditionally changes the size to 1
     468#ifdef _MSC_VER
     469        BOOST_UBLAS_BOUNDED_ARRAY_ALIGN value_type data_ [(N>0)?N:1];
     470#else
    467471        BOOST_UBLAS_BOUNDED_ARRAY_ALIGN value_type data_ [N];
     472#endif
    468473    };
    469474
    470475