but the signatures of foo::write_binary and global write_binary are different
so the compiler must be able to choose correct function
but it erros
Code:test.cpp: In member function ‘void foo::write_binary(std::ofstream&) const’: test.cpp:20: error: no matching function for call to ‘foo::write_binary(constint&,std::basic_ofstream<char,std::char_traits<char> >&) const’ test.cpp:18: note: candidates are: void foo::write_binary(std::ofstream&) const




Reply With Quote
