diff --git a/cxx/emissions/sometimes.hh b/cxx/emissions/sometimes.hh index bba2bb3..d33f018 100644 --- a/cxx/emissions/sometimes.hh +++ b/cxx/emissions/sometimes.hh @@ -18,7 +18,7 @@ class Sometimes : public Emission { Sometimes() : bb(nullptr) {}; void incorporate(const std::pair& x) { - ++N; + ++(this->N); bb.incorporate(x.first != x.second); if (x.first != x.second) { be.incorporate(x); @@ -26,7 +26,7 @@ class Sometimes : public Emission { } void unincorporate(const std::pair& x) { - --N; + --(this->N); bb.unincorporate(x.first != x.second); if (x.first != x.second) { be.unincorporate(x); diff --git a/cxx/emissions/sometimes_test.cc b/cxx/emissions/sometimes_test.cc index f57f59c..1d78608 100644 --- a/cxx/emissions/sometimes_test.cc +++ b/cxx/emissions/sometimes_test.cc @@ -29,7 +29,5 @@ BOOST_AUTO_TEST_CASE(test_simple) { BOOST_TEST(sbf.logp(std::make_pair(true, false)) < 0.0); std::mt19937 prng; - BOOST_TEST(sbf.sample_corrupted(false, &prng)); - BOOST_TEST(sbf.propose_clean({true, true, false}, &prng)); }