How to call normal "write" function inside a class
Hi,
simple problem but I cannot figure out how to solve it:
I have a class "Foo" which has a method "write(string str)".
Inside this method I want to call the normal write function as defined in unistd.h:
write(int fd, const void *buf, size_t count)
I get the following compiler error:
error: no matching function for call to âFoo::write(int&, const char*&, size_t)
So the compiler (gcc 4.1) wants to call "Foo::write" instead of "write".
How can I specify to call the normal write function?
Greetings, Jonas
|