diff --git a/cpp/Ordering.h b/cpp/Ordering.h index 946f4e60b..80d5fc249 100644 --- a/cpp/Ordering.h +++ b/cpp/Ordering.h @@ -24,6 +24,13 @@ namespace gtsam { Ordering() { } + /** + * Create from a single string + */ + Ordering(std::string key) { + push_back(key); + } + /** * Copy constructor from string vector */