Use new instead of ::new for placement

This commit is contained in:
Vinnie Falco
2013-09-14 19:24:38 -07:00
parent 2a04dcc334
commit 77874ee518
8 changed files with 23 additions and 35 deletions

View File

@@ -69,7 +69,7 @@ public:
template <typename F>
SharedFunction (F f, A a = A ())
: m_ptr (::new (
: m_ptr (new (
typename CallType <F>::Allocator (a)
.allocate (sizeof (CallType <F>)))
CallType <F> (BEAST_MOVE_CAST(F)(f), a))
@@ -152,7 +152,7 @@ public:
template <typename F>
SharedFunction (F f, A a = A ())
: m_ptr (::new (
: m_ptr (new (
typename CallType <F>::Allocator (a)
.allocate (sizeof (CallType <F>)))
CallType <F> (BEAST_MOVE_CAST(F)(f), a))