Skip to content

Commit

Permalink
Fix VS2017 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 4, 2017
1 parent 4417a1b commit af0a042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Layers/xrRender/r__dsgraph_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class doug_lea_alloc
void deallocate(pointer p, size_type n) const { g_render_allocator.free_impl((void*&)p); }
void deallocate(void* p, size_type n) const { g_render_allocator.free_impl(p); }
char* __charalloc(size_type n) { return (char*)allocate(n); }
void construct(pointer p, const T& _Val) { std::_Construct(p, _Val); }
void destroy(pointer p) { std::_Destroy(p); }
void construct(pointer p, const T& _Val) { new(p) T(_Val); }
void destroy(pointer p) { p->~T(); }
size_type max_size() const
{
size_type _Count = (size_type)(-1) / sizeof(T);
Expand Down
4 changes: 2 additions & 2 deletions src/xrCore/_stl_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class xalloc
char* _charalloc(size_type n) { return (char*)allocate(n); }
void deallocate(pointer p, size_type n) const { xr_free(p); }
void deallocate(void* p, size_type n) const { xr_free(p); }
void construct(pointer p, const T& _Val) { std::_Construct(p, _Val); }
void destroy(pointer p) { std::_Destroy(p); }
void construct(pointer p, const T& _Val) { new(p) T(_Val); }
void destroy(pointer p) { p->~T(); }
size_type max_size() const
{
size_type _Count = (size_type)(-1) / sizeof(T);
Expand Down

0 comments on commit af0a042

Please sign in to comment.