Commit 58da6ad3 authored by Jason Rhinelander's avatar Jason Rhinelander

Avoid inheriting constructors

clang-3.2 (which is the latest in Ubuntu 13.04, the latest release as of
this writing) doesn't support inherited constructors (it was added in
clang-3.3).
parent a838d888
......@@ -12,7 +12,10 @@ using eris::agent::PositionalAgent;
*/
class Party : public PositionalAgent {
public:
using PositionalAgent::PositionalAgent;
// Inherited constructors is ideal here, but support is lacking, so just replicate the one
// we used:
//using PositionalAgent::PositionalAgent;
Party(double p, double b1, double b2) : PositionalAgent(p, b1, b2) {}
/** Overridden to make movements bind to the position boundaries.
*/
......
......@@ -13,7 +13,10 @@ using eris::agent::PositionalAgent;
*/
class Voter : public PositionalAgent {
public:
using PositionalAgent::PositionalAgent;
// Inherited constructors is ideal here, but support is lacking, so just replicate the one
// we used:
//using PositionalAgent::PositionalAgent;
Voter(double p, double b1, double b2) : PositionalAgent(p, b1, b2) {}
/** Returns true if the given voter is a friend of this voter. */
bool isFriend(eris_id_t voter) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment