Summary: If you try to make a future or promise of `void`, you will get this nice error message telling you to use `Unit` instead.
Reviewed By: @djwatson
Differential Revision:
D2211239
/// time there won't be any problems.
template<typename T>
class Core {
+ static_assert(!std::is_void<T>::value,
+ "void futures are not supported. Use Unit instead.");
public:
/// This must be heap-constructed. There's probably a way to enforce that in
/// code but since this is just internal detail code and I don't know how