Skip to content

Commit

Permalink
fix clang compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Apr 15, 2018
1 parent 3b2b243 commit 2c96990
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/base/MockObject.h
Expand Up @@ -40,8 +40,9 @@ namespace shogun

virtual CSGObject* clone() override
{
auto clone = CSGObject::clone()->as<CCloneEqualsMockParameter>();
clone->m_was_cloned = true;
auto clone = CSGObject::clone();
auto casted = clone->template as<CCloneEqualsMockParameter>();
casted->m_was_cloned = true;
return clone;
}

Expand Down

0 comments on commit 2c96990

Please sign in to comment.