Index: src/cxa_demangle.cpp =================================================================== --- src/cxa_demangle.cpp +++ src/cxa_demangle.cpp @@ -18,6 +18,13 @@ #include #include +#ifdef _MSC_VER +// snprintf is implemented in VS 2015 +#if _MSC_VER < 1900 +#define snprintf _snprintf_s +#endif +#endif + namespace __cxxabiv1 { @@ -4818,6 +4825,12 @@ { public: typedef T value_type; + typedef T& reference; + typedef const T& const_reference; + typedef T* pointer; + typedef const T* const_pointer; + typedef std::size_t size_type; + typedef std::ptrdiff_t difference_type; malloc_alloc() = default; template malloc_alloc(const malloc_alloc&) noexcept {} @@ -4830,6 +4843,17 @@ { std::free(p); } + + template struct rebind { using other = malloc_alloc; }; + template + void construct(U* p, Args&&... args) + { + ::new ((void*)p) U(std::forward(args)...); + } + void destroy(T* p) + { + p->~T(); + } }; template