From: Warren Young Date: November 26 2009 5:48pm Subject: Re: Binary store List-Archive: http://lists.mysql.com/plusplus/8795 Message-Id: <68C3ED7C-8A39-418A-9976-F11D8247DE85@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Nov 26, 2009, at 10:36 AM, Sebasti=E1n Salazar Molina wrote: > I need to store a C++ object, not a file. Beware, there be dragons down that path: - Pointers can't be stored directly - Structure padding varies by compiler, OS, CPU, compiler options... - Byte order varies among CPU types and sometimes even OS on the = same CPU (PowerPC and HP PA-RISC processors allow switchable byte order = at boot time) This general class of problems is called object serialization, and = there's got to be whole books on the topic. Academic journals even, = maybe. It might be best to leave such code up to others who have = already worked out the details. MySQL++'s answer to this question is SSQLS. Hardly comprehensive, but = maybe good enough for your purposes.=