Commit 4797ca02 authored by vitaut's avatar vitaut

POD -> trivially copyable/constructible

parent 3121ebd0
...@@ -603,8 +603,8 @@ void Buffer<T>::append(const U *begin, const U *end) { ...@@ -603,8 +603,8 @@ void Buffer<T>::append(const U *begin, const U *end) {
namespace internal { namespace internal {
// A memory buffer for POD types with the first SIZE elements stored in // A memory buffer for trivially copyable/constructible types with the first SIZE
// the object itself. // elements stored in the object itself.
template <typename T, std::size_t SIZE, typename Allocator = std::allocator<T> > template <typename T, std::size_t SIZE, typename Allocator = std::allocator<T> >
class MemoryBuffer : private Allocator, public Buffer<T> { class MemoryBuffer : private Allocator, public Buffer<T> {
private: private:
...@@ -949,8 +949,8 @@ struct Value { ...@@ -949,8 +949,8 @@ struct Value {
}; };
}; };
// A formatting argument. It is a POD type to allow storage in // A formatting argument. It is a trivially copyable/constructible type to
// internal::MemoryBuffer. // allow storage in internal::MemoryBuffer.
struct Arg : Value { struct Arg : Value {
Type type; Type type;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment