/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
template <class T> struct Drop : public std::false_type {
using type = T;
};
- bool operator==(const Unit& other) const { return true; }
- bool operator!=(const Unit& other) const { return false; }
+ bool operator==(const Unit& /*other*/) const { return true; }
+ bool operator!=(const Unit& /*other*/) const { return false; }
};
// Lift void into Unit.
struct is_void_or_unit : public Unit::Lift<T>
{};
+constexpr Unit unit {};
+
}