SVN 7093: compile error in ValueRef.h on OSX

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Vezzra
Release Manager, Design
Posts: 6100
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

SVN 7093: compile error in ValueRef.h on OSX

#1 Post by Vezzra »

I get the following compile error (multiple times) on OSX with rev 7093:

Code: Select all

error: no matching function for call to 'base_object(ValueRef::UserStringLookup&)'
in ValueRef.h, line 1250:

Code: Select all

template <class Archive>
void ValueRef::UserStringLookup::serialize(Archive& ar, const unsigned int version)
{
    ar  & BOOST_SERIALIZATION_BASE_OBJECT_NVP(ValueRefBase)   <<< this is line 1250
        & BOOST_SERIALIZATION_NVP(m_value_ref);
}
Due to this issue I postponed the weekly test builds until tomorrow evening, hoping that there's a quick and easy fix. Otherwise I'll just do the test builds for Windows.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: SVN 7093: compile error in ValueRef.h on OSX

#2 Post by Geoff the Medio »

Try

Code: Select all

template <class Archive>
void ValueRef::UserStringLookup::serialize(Archive& ar, const unsigned int version)
{
    ar  & BOOST_SERIALIZATION_BASE_OBJECT_NVP(ValueRefBase<std::string>)
        & BOOST_SERIALIZATION_NVP(m_value_ref);
}

User avatar
Vezzra
Release Manager, Design
Posts: 6100
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: SVN 7093: compile error in ValueRef.h on OSX

#3 Post by Vezzra »

Yep, that worked. Committed, rev 7094.

Post Reply