BMI1 support in EliasFanoCoding
[folly.git] / folly / MoveWrapper.h
index bbdca228ea1bca64af0d6b1262bc8c9191c8ef30..13bdbd342f369953e6153b575152d7d58c856e8a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -43,7 +43,7 @@ class MoveWrapper {
   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)) {}
@@ -60,7 +60,7 @@ class MoveWrapper {
   MoveWrapper& operator=(MoveWrapper&&) = delete;
 
  private:
-  T value;
+  mutable T value;
 };
 
 template <class T>