diff --git a/header/algorithm.hpp b/header/algorithm.hpp index eaa0711..774b99a 100644 --- a/header/algorithm.hpp +++ b/header/algorithm.hpp @@ -23,15 +23,6 @@ namespace util { void operator()(T* p) { delete p; } }; - // for binary operation - struct raw_type { char c; }; - inline std::istream& operator >>(std::istream& in, raw_type& r) { - return in.get(r.c); - } - inline std::ostream& operator <<(std::ostream& out, const raw_type& r) { - return out.put(r.c); - } - // copy_if template< typename InputIterator, typename OstreamIterator, typename Predicate> diff --git a/sample/algorithm/main.cpp b/sample/algorithm/main.cpp index 7207422..03edf42 100644 --- a/sample/algorithm/main.cpp +++ b/sample/algorithm/main.cpp @@ -110,11 +110,6 @@ int main(const int argc, const char* const argv[]) { util::algorithm::basic_progress( std::cerr, 1, params.size())); - std::cout << "binary operation\n"; - std::ifstream fin("main.cpp", std::ios_base::binary); - std::istream_iterator iitr(fin), end; - util::algorithm::print(iitr, end, std::cout, ""); - std::cerr << std::endl; return 0;