28 May 11:33
Re: [integer] Promotion of endian library code from vault
Roland Schwarz <roland.schwarz <at> chello.at>
2008-05-28 09:33:35 GMT
2008-05-28 09:33:35 GMT
Just checked:
iostream::write
can't write to a void*
This means:
struct A_t {
ulittle32_t a;
ulittle32_t b;
} A;
std::fstream f("test.bin", ios::out|ios::binary);
f.write(&A, sizeof(A_t);
won't compile. And I think one should be able to expect this
to work for an endian lib.
Or am am I missing something here?
--
--
_________________________________________
_ _ | Roland Schwarz
|_)(_ | aka. speedsnail
| \__) | mailto:roland.schwarz <at> chello.at
________| http://www.blackspace.at
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
RSS Feed