This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
struct base | |
{ | |
virtual ssize_t write(const char *buf, size_t buf_len); | |
ssize_t write(std::string &s); | |
}; | |
ssize_t base::write(const char *buf, size_t buf_len) |