mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use new instead of ::new for placement
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user