mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
POD -> trivially copyable/constructible
This commit is contained in:
parent
3121ebd044
commit
4797ca025e
8
format.h
8
format.h
@ -603,8 +603,8 @@ void Buffer<T>::append(const U *begin, const U *end) {
|
||||
|
||||
namespace internal {
|
||||
|
||||
// A memory buffer for POD types with the first SIZE elements stored in
|
||||
// the object itself.
|
||||
// A memory buffer for trivially copyable/constructible types with the first SIZE
|
||||
// elements stored in the object itself.
|
||||
template <typename T, std::size_t SIZE, typename Allocator = std::allocator<T> >
|
||||
class MemoryBuffer : private Allocator, public Buffer<T> {
|
||||
private:
|
||||
@ -949,8 +949,8 @@ struct Value {
|
||||
};
|
||||
};
|
||||
|
||||
// A formatting argument. It is a POD type to allow storage in
|
||||
// internal::MemoryBuffer.
|
||||
// A formatting argument. It is a trivially copyable/constructible type to
|
||||
// allow storage in internal::MemoryBuffer.
|
||||
struct Arg : Value {
|
||||
Type type;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user