}
// Make sure copying is allowed
- CmdlineParseResult(const CmdlineParseResult& other) = default;
+ CmdlineParseResult(const CmdlineParseResult&) = default;
// Make sure moving is cheap
- CmdlineParseResult(CmdlineParseResult&& other) = default;
+ CmdlineParseResult(CmdlineParseResult&&) = default;
private:
explicit CmdlineParseResult(const T& value)
}
// Ensure we have a default move constructor.
- CmdlineParser(CmdlineParser&& other) = default;
+ CmdlineParser(CmdlineParser&&) = default;
// Ensure we have a default move assignment operator.
- CmdlineParser& operator=(CmdlineParser&& other) = default;
+ CmdlineParser& operator=(CmdlineParser&&) = default;
private:
friend struct Builder;
}
// Make sure copying exists
- CmdlineResult(const CmdlineResult& other) = default;
+ CmdlineResult(const CmdlineResult&) = default;
// Make sure moving is cheap
- CmdlineResult(CmdlineResult&& other) = default;
+ CmdlineResult(CmdlineResult&&) = default;
private:
const Status status_;
// Default constructors/copy-constructors.
MillisecondsToNanoseconds() : nanoseconds_(0ul) {}
- MillisecondsToNanoseconds(const MillisecondsToNanoseconds& rhs) = default;
- MillisecondsToNanoseconds(MillisecondsToNanoseconds&& rhs) = default;
+ MillisecondsToNanoseconds(const MillisecondsToNanoseconds&) = default;
+ MillisecondsToNanoseconds(MillisecondsToNanoseconds&&) = default;
private:
uint64_t nanoseconds_;
}
ParseStringList() = default;
- ParseStringList(const ParseStringList& rhs) = default;
- ParseStringList(ParseStringList&& rhs) = default;
+ ParseStringList(const ParseStringList&) = default;
+ ParseStringList(ParseStringList&&) = default;
private:
std::vector<std::string> list_;
max_stack_depth_(0) {
}
- TestProfilerOptions(const TestProfilerOptions& other) = default;
- TestProfilerOptions(TestProfilerOptions&& other) = default;
+ TestProfilerOptions(const TestProfilerOptions&) = default;
+ TestProfilerOptions(TestProfilerOptions&&) = default;
};
static inline std::ostream& operator<<(std::ostream& stream, const TestProfilerOptions& options) {
}
// Non-copying copy constructor.
- TokenRange(const TokenRange& other) = default;
+ TokenRange(const TokenRange&) = default;
// Non-copying move constructor.
- TokenRange(TokenRange&& other) = default;
+ TokenRange(TokenRange&&) = default;
// Non-copying constructor. Retains reference to an existing list of tokens, with offset.
explicit TokenRange(std::shared_ptr<TokenList> token_list)
class ArenaAllocatorAdapterKindImpl<false> {
public:
// Not tracking allocations, ignore the supplied kind and arbitrarily provide kArenaAllocSTL.
- explicit ArenaAllocatorAdapterKindImpl(ArenaAllocKind kind) { UNUSED(kind); }
- ArenaAllocatorAdapterKindImpl& operator=(const ArenaAllocatorAdapterKindImpl& other) = default;
+ explicit ArenaAllocatorAdapterKindImpl(ArenaAllocKind kind ATTRIBUTE_UNUSED) {}
+ ArenaAllocatorAdapterKindImpl& operator=(const ArenaAllocatorAdapterKindImpl&) = default;
ArenaAllocKind Kind() { return kArenaAllocSTL; }
};
class ArenaAllocatorAdapterKindImpl {
public:
explicit ArenaAllocatorAdapterKindImpl(ArenaAllocKind kind) : kind_(kind) { }
- ArenaAllocatorAdapterKindImpl& operator=(const ArenaAllocatorAdapterKindImpl& other) = default;
+ ArenaAllocatorAdapterKindImpl& operator=(const ArenaAllocatorAdapterKindImpl&) = default;
ArenaAllocKind Kind() { return kind_; }
private:
ArenaAllocatorAdapterKind(other),
arena_allocator_(other.arena_allocator_) {
}
- ArenaAllocatorAdapter(const ArenaAllocatorAdapter& other) = default;
- ArenaAllocatorAdapter& operator=(const ArenaAllocatorAdapter& other) = default;
+ ArenaAllocatorAdapter(const ArenaAllocatorAdapter&) = default;
+ ArenaAllocatorAdapter& operator=(const ArenaAllocatorAdapter&) = default;
~ArenaAllocatorAdapter() = default;
private:
ArenaAllocatorAdapterKind(other),
arena_allocator_(other.arena_allocator_) {
}
- ArenaAllocatorAdapter(const ArenaAllocatorAdapter& other) = default;
- ArenaAllocatorAdapter& operator=(const ArenaAllocatorAdapter& other) = default;
+ ArenaAllocatorAdapter(const ArenaAllocatorAdapter&) = default;
+ ArenaAllocatorAdapter& operator=(const ArenaAllocatorAdapter&) = default;
~ArenaAllocatorAdapter() = default;
size_type max_size() const {
ArenaAllocatorAdapterKind(other),
arena_stack_(other.arena_stack_) {
}
- ScopedArenaAllocatorAdapter(const ScopedArenaAllocatorAdapter& other) = default;
- ScopedArenaAllocatorAdapter& operator=(const ScopedArenaAllocatorAdapter& other) = default;
+ ScopedArenaAllocatorAdapter(const ScopedArenaAllocatorAdapter&) = default;
+ ScopedArenaAllocatorAdapter& operator=(const ScopedArenaAllocatorAdapter&) = default;
~ScopedArenaAllocatorAdapter() = default;
private:
ArenaAllocatorAdapterKind(other),
arena_stack_(other.arena_stack_) {
}
- ScopedArenaAllocatorAdapter(const ScopedArenaAllocatorAdapter& other) = default;
- ScopedArenaAllocatorAdapter& operator=(const ScopedArenaAllocatorAdapter& other) = default;
+ ScopedArenaAllocatorAdapter(const ScopedArenaAllocatorAdapter&) = default;
+ ScopedArenaAllocatorAdapter& operator=(const ScopedArenaAllocatorAdapter&) = default;
~ScopedArenaAllocatorAdapter() = default;
size_type max_size() const {
protected:
// Avoid the object slicing problem; use Clone() instead.
- VariantMapKeyRaw(const VariantMapKeyRaw& other) = default;
- VariantMapKeyRaw(VariantMapKeyRaw&& other) = default;
+ VariantMapKeyRaw(const VariantMapKeyRaw&) = default;
+ VariantMapKeyRaw(VariantMapKeyRaw&&) = default;
private:
size_t key_counter_; // Runtime type ID. Unique each time a new type is reified.
deleter(reinterpret_cast<TValue*>(value));
}
- VariantMapKey(const VariantMapKey& other) = default;
- VariantMapKey(VariantMapKey&& other) = default;
+ VariantMapKey(const VariantMapKey&) = default;
+ VariantMapKey(VariantMapKey&&) = default;
template <typename Base, template <typename TV> class TKey> friend struct VariantMap;