PIpe manipulation in a fifo.h file
Dear Sir/Mrs.
I want to replace the FIFO which is declared in an h file like that:
template <class T>
inline T
fifo: read by the following:
1. I created an unamed pipe using pipe(fd) where df is int fd[2].
2. The original read is fifo<T>::read {... }
3. I replaced the code with:
ssize_t ret_code ;
ret_code = read ( fd[0], ( void*) message, (size_t *) sizeof (message)) ;
I get the compilation error: invalid arguments. Candidates are void read(#0 &) #0 read()'
Configuration:
1. OS: Red Hat 6.4
2. C/C++ using GNU.
3. development platform: Eclipse
How to overcome this problem?
Thanks in advance.
Yehuda
Last edited by YehudaSinger; 10-08-2015 at 01:17 AM.
Reason: More details
|