Use brace initializers for DiscreteValues in hybrid

release/4.3a0
Frank Dellaert 2022-12-31 01:54:12 -05:00
parent fee651a357
commit b86c8bb594
2 changed files with 1 additions and 5 deletions

View File

@ -237,8 +237,7 @@ TEST(HybridBayesNet, Error) {
EXPECT(assert_equal(expected_pruned_error, pruned_error_tree, 1e-9));
// Verify error computation and check for specific error value
DiscreteValues discrete_values;
boost::assign::insert(discrete_values)(M(0), 1)(M(1), 1);
DiscreteValues discrete_values {{M(0), 1}, {M(1), 1}};
double total_error = 0;
for (size_t idx = 0; idx < hybridBayesNet->size(); idx++) {

View File

@ -40,7 +40,6 @@
#include <gtsam/linear/JacobianFactor.h>
#include <algorithm>
#include <boost/assign/std/map.hpp>
#include <cstddef>
#include <functional>
#include <iostream>
@ -49,8 +48,6 @@
#include "Switching.h"
using namespace boost::assign;
using namespace std;
using namespace gtsam;