Skip to content

Commit

Permalink
Work around compile error on Fedora 17.
Browse files Browse the repository at this point in the history
Possibly due to compiler bug.
  • Loading branch information
pavoljuhas committed Mar 18, 2014
1 parent fa6771a commit 6f125d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srrealmodule/wrap_ScatteringFactorTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ class ScatteringFactorTableWrap :
ScatteringFactorTableWrap(const ScatteringFactorTable& src)
{
ScatteringFactorTable& thistable = *this;
thistable = src;
// workaround for weird implicit ScatteringFactorTable::operator=
// in g++ Red Hat 4.7.2-2, which must have non-constant argument.
thistable = const_cast<ScatteringFactorTable&>(src);
}

// HasClassRegistry methods
Expand Down

0 comments on commit 6f125d4

Please sign in to comment.