/*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
MoveWrapper(T&& t) : value(std::move(t)) {}
/// copy is move
- MoveWrapper(MoveWrapper& other) : value(std::move(other.value)) {}
+ MoveWrapper(const MoveWrapper& other) : value(std::move(other.value)) {}
/// move is also move
MoveWrapper(MoveWrapper&& other) : value(std::move(other.value)) {}
MoveWrapper& operator=(MoveWrapper&&) = delete;
private:
- T value;
+ mutable T value;
};
template <class T>