diff options
author | Max Kellermann <max@musicpd.org> | 2017-07-03 17:00:53 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-07-05 12:08:34 +0200 |
commit | 61aca389c467a3fe38cd51144f2fba0e7cf78ec9 (patch) | |
tree | 9dc80e21169479f9eede991c28b86fa99953d106 | |
parent | 80438c48762bba0ae0e45492463307b10a5cdca4 (diff) |
util/{Const,Writable}Buffer: add typedef value_type
-rw-r--r-- | src/util/ConstBuffer.hxx | 4 | ||||
-rw-r--r-- | src/util/WritableBuffer.hxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/util/ConstBuffer.hxx b/src/util/ConstBuffer.hxx index 4f4901564..d71088588 100644 --- a/src/util/ConstBuffer.hxx +++ b/src/util/ConstBuffer.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Max Kellermann <max.kellermann@gmail.com> + * Copyright (C) 2013-2017 Max Kellermann <max.kellermann@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -44,6 +44,7 @@ struct ConstBuffer; template<> struct ConstBuffer<void> { typedef size_t size_type; + typedef void value_type; typedef const void *pointer_type; typedef pointer_type const_pointer_type; typedef pointer_type iterator; @@ -86,6 +87,7 @@ struct ConstBuffer<void> { template<typename T> struct ConstBuffer { typedef size_t size_type; + typedef T value_type; typedef const T &reference_type; typedef reference_type const_reference_type; typedef const T *pointer_type; diff --git a/src/util/WritableBuffer.hxx b/src/util/WritableBuffer.hxx index d4b4ee894..2782fecf1 100644 --- a/src/util/WritableBuffer.hxx +++ b/src/util/WritableBuffer.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Max Kellermann <max.kellermann@gmail.com> + * Copyright (C) 2013-2017 Max Kellermann <max.kellermann@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -44,6 +44,7 @@ struct WritableBuffer; template<> struct WritableBuffer<void> { typedef size_t size_type; + typedef void value_type; typedef void *pointer_type; typedef const void *const_pointer_type; typedef pointer_type iterator; @@ -80,6 +81,7 @@ struct WritableBuffer<void> { template<typename T> struct WritableBuffer { typedef size_t size_type; + typedef T value_type; typedef T &reference_type; typedef const T &const_reference_type; typedef T *pointer_type; |