M
Mathieu Malaterre
Hello,
I am trying to take advantage of the formatted ouput operator of
ostream to rewrite this piece of code /more nicely/:
oftream fp("/tmp/foo", std::ios:ut | std::ios::binary);
uint32_t v = 38;
void* ptr = &v;
fp.write ( (char*)ptr,(size_t)4 );
Unfortunately I cannot find a way to use '<<'.
Any idea ?
Thanks
Mathieu
I am trying to take advantage of the formatted ouput operator of
ostream to rewrite this piece of code /more nicely/:
oftream fp("/tmp/foo", std::ios:ut | std::ios::binary);
uint32_t v = 38;
void* ptr = &v;
fp.write ( (char*)ptr,(size_t)4 );
Unfortunately I cannot find a way to use '<<'.
Any idea ?
Thanks
Mathieu