From 25372aaa12afe30501be33307f0980bdd6575337 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Thu, 14 Jan 2010 15:31:42 +0000 Subject: [PATCH] c_str --- cpp/Key.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/Key.h b/cpp/Key.h index 97c6e44a9..464ab7280 100644 --- a/cpp/Key.h +++ b/cpp/Key.h @@ -35,6 +35,7 @@ namespace gtsam { // Get stuff: size_t index() const { return j_;} + const char* c_str() const { return (std::string)(*this).c_str();} operator std::string() const { return (boost::format("%c%d") % C % j_).str(); } std::string latex() const { return (boost::format("%c_{%d}") % C % j_).str(); }