widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #06750
Re: Widelands::OPtr
-
To:
widelands-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Fòram na Gàidhlig <fios@xxxxxxxxxxxxxxxxxxx>
-
Date:
Wed, 16 Mar 2016 11:44:17 +0000
-
In-reply-to:
<CAGCtC0A2zTiXEUj_c6ocnK2i-_48NY2BEhfD4ip=+DNO=CrAOg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
Glad you found it :)
Sgrìobh Tibor Bamhor na leanas 16/03/2016 aig 10:18:
> OK, I found that right syntax is
>
> destination_.get(egbase)->get_dock_position().x
>
> 2016-03-16 10:28 GMT+01:00 Tibor Bamhor <tiborb95@xxxxxxxxx
> <mailto:tiborb95@xxxxxxxxx>>:
>
> I run into this compilation error:
>
> error: 'struct Widelands::OPtr<Widelands::PortDock>' has no member
> named 'get_dock_position'
> destination_.get_dock_position().x,
>
> I am sure that Widelands::PortDock has such member function, so how
> can I "switch" from Widelands::OPtr<Widelands::PortDock>
> to Widelands::PortDock?
>
> Tibor
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help : https://help.launchpad.net/ListHelp
>
--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (MingW32)
mQINBFNbSyEBEADh+uhohycnZgPPnyMs5pZQG6pKyLzFZoIKbVjY31ZoPZ2SdltB
elrwn6kFZkQiDx4K6nkZFHsPh8RMvWoFWg1rGiWkdsZessLFawraC8YEZDwtlaU5
SFXbE4+QnMfbPhe9tmC8Nbhec3dfV9zcXAhxc+zkIUsKFhSkpJ2Syvo9FCA/5adW
UZgWWKFwlSg4+/lrhJ6QJnldPlXfWcuEasKF7fjdafDIdS5hdKu8Lv+CiPQWvgsi
J2B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