Comment out use of noexcept and ref-qualification.
MSVC 2013 does not support them and we don't need them,
but they can be restored someday.
Fixes #112.
Change-Id: Ie7b46535419f6e05e864d1bf0f108c967af40f5e
Reviewed-on: https://code-review.googlesource.com/7491
Reviewed-by: Paul Wankadia <[email protected]>
diff --git a/util/sparse_array.h b/util/sparse_array.h
index 3b651cd..589f995 100644
--- a/util/sparse_array.h
+++ b/util/sparse_array.h
@@ -121,10 +121,10 @@
typedef typename std::vector<IndexValue>::const_iterator const_iterator;
SparseArray(const SparseArray& src);
- SparseArray(SparseArray&& src) noexcept;
+ SparseArray(SparseArray&& src) /*noexcept*/;
SparseArray& operator=(const SparseArray& src);
- SparseArray& operator=(SparseArray&& src) noexcept;
+ SparseArray& operator=(SparseArray&& src) /*noexcept*/;
const IndexValue& iv(int i) const;
@@ -333,7 +333,7 @@
}
template<typename Value>
-SparseArray<Value>::SparseArray(SparseArray&& src) noexcept // NOLINT
+SparseArray<Value>::SparseArray(SparseArray&& src) /*noexcept*/ // NOLINT
: size_(src.size_),
max_size_(src.max_size_),
sparse_to_dense_(std::move(src.sparse_to_dense_)),
@@ -356,7 +356,7 @@
template<typename Value>
SparseArray<Value>& SparseArray<Value>::operator=(
- SparseArray&& src) noexcept { // NOLINT
+ SparseArray&& src) /*noexcept*/ { // NOLINT
size_ = src.size_;
max_size_ = src.max_size_;
sparse_to_dense_ = std::move(src.sparse_to_dense_);
@@ -382,9 +382,9 @@
int index() const { return index_; }
- Value& value() & { return second; }
- const Value& value() const & { return second; }
- Value&& value() && { return std::move(second); } // NOLINT
+ Value& value() /*&*/ { return second; }
+ const Value& value() const /*&*/ { return second; }
+ //Value&& value() /*&&*/ { return std::move(second); } // NOLINT
private:
int index_;