diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-29 13:35:09 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-29 13:35:27 +0300 |
commit | 38c9deeb5ac0a9407659d5ded7d31430de408dd7 (patch) | |
tree | 2ae5ab155c6e83be6a6c7efd25690582f1a937ed /source/blender/blenlib/BLI_memory_utils.hh | |
parent | 2def6f5568ee76a56a139799116c67cdcfc19814 (diff) |
Cleanup: use std::make_unique instead of blender::make_unique
This is possible, because we use C++17 now.
Diffstat (limited to 'source/blender/blenlib/BLI_memory_utils.hh')
-rw-r--r-- | source/blender/blenlib/BLI_memory_utils.hh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/blenlib/BLI_memory_utils.hh b/source/blender/blenlib/BLI_memory_utils.hh index 81792e2101c..baad862bce5 100644 --- a/source/blender/blenlib/BLI_memory_utils.hh +++ b/source/blender/blenlib/BLI_memory_utils.hh @@ -204,14 +204,6 @@ template<typename T> void uninitialized_fill_n(T *dst, uint n, const T &value) } } -/** - * The same as std::unique_ptr. This can be removed when we start using C++14. - */ -template<typename T, typename... Args> std::unique_ptr<T> make_unique(Args &&... args) -{ - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); -} - template<typename T> struct DestructValueAtAddress { void operator()(T *ptr) { |