Skip to content

Commit

Permalink
Fixed placement new in PoolAllocator::construct().
Browse files Browse the repository at this point in the history
  • Loading branch information
jrprice authored and mpflanzer committed Jul 7, 2015
1 parent cd2867c commit af40f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace oclgrind
template<class U, class... Args>
void construct(U *p, Args&&... args)
{
new (p) U(std::forward<Args>(args)...);
new ((void*)p) U(std::forward<Args>(args)...);
}

template<class U>
Expand Down

0 comments on commit af40f99

Please sign in to comment.