C++ Language/Std/Iostreams/StreamingCustomTypes

To enable  where   has a custom type, you would need to implement an overload of the stream-operator.

Additional information about streaming custom types