From 39e08c9a4e54d2de1b4a76e16f7e581231dd0c36 Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco Claraco Date: Wed, 12 Jun 2019 11:53:27 +0200 Subject: [PATCH] fix warning "const" ignored in this return type --- gtsam/inference/VariableIndex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/inference/VariableIndex.h b/gtsam/inference/VariableIndex.h index 0d7320428..f2ba3e31c 100644 --- a/gtsam/inference/VariableIndex.h +++ b/gtsam/inference/VariableIndex.h @@ -95,7 +95,7 @@ class GTSAM_EXPORT VariableIndex { } /// Return true if no factors associated with a variable - const bool empty(Key variable) const { + bool empty(Key variable) const { return (*this)[variable].empty(); }