Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/debug_utils-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct ToStringHelper {
template <unsigned BASE_BITS,
typename T,
typename = std::enable_if_t<!std::is_integral_v<T>>>
static std::string BaseConvert(T value) {
static std::string BaseConvert(T& value) { // NOLINT(runtime/references)
return Convert(std::forward<T>(value));
}
};
Expand Down
5 changes: 5 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ constexpr size_t strsize(const T (&)[N]) {
template <typename T, size_t kStackStorageSize = 1024>
class MaybeStackBuffer {
public:
// Disallow copy constructor
MaybeStackBuffer(const MaybeStackBuffer&) = delete;
// Disallow copy assignment operator
MaybeStackBuffer& operator=(const MaybeStackBuffer& other) = delete;

const T* out() const {
return buf_;
}
Expand Down
Loading