| commit | c2279000a926db64c0bb0caa69025031174d576a | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sat Apr 11 22:06:00 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Sat Apr 11 22:06:00 2020 -0700 |
| tree | eab78246d44f163c7ef791801e7ef82a45c3ad27 | |
| parent | a3d92bf9924d4d1277654c885d6ed09bcb0a7969 [diff] [blame] |
Format with clangfmt
diff --git a/include/cxx.h b/include/cxx.h index 2ffacc5..f7decd8 100644 --- a/include/cxx.h +++ b/include/cxx.h
@@ -132,8 +132,7 @@ T *operator->() noexcept { return this->ptr; } T &operator*() noexcept { return *this->ptr; } - template <typename... Fields> - static Box in_place(Fields&&... fields) { + template <typename... Fields> static Box in_place(Fields &&... fields) { Box box; box.uninit(); ::new (box.ptr) T{std::forward<Fields>(fields)...};