summaryrefslogtreecommitdiff
path: root/utils/exp_semiring.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-03-18 02:05:25 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-03-18 02:05:25 -0400
commit3a5aeb67de3d7156e77ee94625ed3714117d3b43 (patch)
treefc4aa0ffa2a414d333637f099943106ef459e24d /utils/exp_semiring.h
parent766629370bbecfb05513aed9cd16f783be5e1543 (diff)
chris edits
Diffstat (limited to 'utils/exp_semiring.h')
-rw-r--r--utils/exp_semiring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/exp_semiring.h b/utils/exp_semiring.h
index 7572ccf5..26a22071 100644
--- a/utils/exp_semiring.h
+++ b/utils/exp_semiring.h
@@ -56,7 +56,7 @@ const PRPair<P,R> operator*(const PRPair<P,R>& a, const PRPair<P,R>& b) {
}
template <class P, class R>
-const PRPair<P,R> star(const PRPair<P,R>& x) {
+inline const PRPair<P,R> star(const PRPair<P,R>& x) {
const P pstar = star(x.p);
return PRPair<P,R>(pstar, pstar * x.r * pstar);
}