Folly.Poly: a library for creating type-erasing polymorphic wrappers
[folly.git] / folly / Traits.h
index ebf69acf7e30628fe0f5d7b88811ad5966833e8d..f513462af9dc2045ee795df172861d1ffa36b3ff 100644 (file)
@@ -312,8 +312,9 @@ using is_trivially_copyable = std::is_trivially_copyable<T>;
 } // namespace traits_detail
 
 struct Ignore {
+  Ignore() = default;
   template <class T>
-  /* implicit */ Ignore(const T&) {}
+  constexpr /* implicit */ Ignore(const T&) {}
   template <class T>
   const Ignore& operator=(T const&) const { return *this; }
 };