From ee923f4c3d078ff363f9cbe36fc1f31e755ff35b Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 26 Aug 2019 11:20:43 +0200 Subject: [PATCH] address reviewers comment URDFModelExport --- src/model_io/urdf/src/URDFModelExport.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/model_io/urdf/src/URDFModelExport.cpp b/src/model_io/urdf/src/URDFModelExport.cpp index 1f86848e3db..05c7603c7a1 100644 --- a/src/model_io/urdf/src/URDFModelExport.cpp +++ b/src/model_io/urdf/src/URDFModelExport.cpp @@ -29,6 +29,15 @@ namespace iDynTree { +/* + * This file uses extensivly the libxml2's tree API, see + * http://www.xmlsoft.org/examples/index.html#Tree for more info. + * Usage of the C-based libxml2 API in C++ means that is necessary to + * use the BAD_CAST macro for handling const-correctness. + * See https://stackoverflow.com/questions/45058878/why-libxml2-uses-bad-cast-everywhere-in-a-c-c-code + * and http://www.xmlsoft.org/html/libxml-xmlstring.html#BAD_CAST for details on this. + */ + /* * Add a URDF element to the specified parent element with the specified transform. *