friend std::istream &operator<<(std::istream &is, removed &r){ ... friend std::ostream &operator<<(std::ostream &os, removed r){ ...