just plain weirdness (serialization)
I'm working with 1.33.1 here and can't upgrade at this point. I'm
trying to compile something I compile with VS using mingw. I'm running
into this weird problem.
The code in question saves and loads a boost::array to an archive. In
visual studio the project compiles. With mingw it does not and issues
an error about boost::array
Try to compile that same simple program using the latest version of boost.
If it works then you may take less hours to upgrade the entire project with
the newest boost release. Just my 2 cents...
I had to upgrade to the latest SVN release because boost 1.35 doesnt
compile static libraries with regex and ICU.
-----Messaggio originale-----
Da: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] Per conto di Noah Roberts
Inviato: giovedì 7 agosto 2008 1.33
A: boost-users@lists.boost.org
Oggetto: [Boost-users] just plain weirdness (serialization)
I'm working with 1.33.1 here and can't upgrade at this point. I'm
trying to compile something I compile with VS using mingw. I'm running
into this weird problem.
The code in question saves and loads a boost::array to an archive. In
visual studio the project compiles. With mingw it does not and issues
an error about boost::array
Andrea Denzler wrote:
Try to compile that same simple program using the latest version of boost. If it works then you may take less hours to upgrade the entire project with the newest boost release. Just my 2 cents...
I had to upgrade to the latest SVN release because boost 1.35 doesn’t compile static libraries with regex and ICU.
Sorry, I found what this was.
I had made a serialization function for boost::array that was templated.
It was something like so:
template< typename T, int I >
void f(boost::array
-----Messaggio originale----- Da: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] Per conto di Noah Roberts Inviato: giovedì 7 agosto 2008 1.33 A: boost-users@lists.boost.org Oggetto: [Boost-users] just plain weirdness (serialization)
I'm working with 1.33.1 here and can't upgrade at this point. I'm trying to compile something I compile with VS using mingw. I'm running into this weird problem.
The code in question saves and loads a boost::array to an archive. In visual studio the project compiles. With mingw it does not and issues an error about boost::array
not having a serialize member function. So in an effort to try and trick down why it is working fine in visual studio I decided to make a minimal program that saves a boost::array to an archive.
I get the same error...
I'm trying to include every system file and boost header that would be included but I can't seem to make anything work. Has anyone any idea at all? I've been working on this for a few hours now and just cannot get a minimal program to compile, yet I've compiled the original project many times in VS...including several times today.
At a loss here...
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Aug 12, 2008, at 3:29 PM, Noah Roberts wrote: [SNIP]
Sorry, I found what this was.
I had made a serialization function for boost::array that was templated. It was something like so:
template< typename T, int I > void f(boost::array
...) The actual template sig for array is
. MSVC can deal, mingw doesn't resolve them as the same and so doesn't find serialize. [TRUNCATE]
Are you using the Boost.S11N library, or just some generic s11n function? If the former, #include the serialization code at "boost/ serialization/array.hpp". -- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com
participants (3)
-
Andrea Denzler
-
Daryle Walker
-
Noah Roberts