diff --git a/include/fcl/collision_object.h b/include/fcl/collision_object.h index 33b0aec89c80d21a4efe10962eebc26163e8e1b1..272d6c3819e503d1e420359285f63e980430ef2f 100644 --- a/include/fcl/collision_object.h +++ b/include/fcl/collision_object.h @@ -297,7 +297,8 @@ public: } /// @brief get geometry from the object instance - const CollisionGeometry* getCollisionGeometry() const FCL_DEPRECATED + FCL_DEPRECATED + const CollisionGeometry* getCollisionGeometry() const { return cgeom.get(); } @@ -446,7 +447,8 @@ public: } /// @brief get geometry from the object instance - inline const CollisionGeometry* getCollisionGeometry() const FCL_DEPRECATED + FCL_DEPRECATED + inline const CollisionGeometry* getCollisionGeometry() const { return cgeom.get(); } diff --git a/include/fcl/deprecated.h b/include/fcl/deprecated.h index 16c74e83b60c9da829e9189e79ab9c0d58db4b25..e7646ad78148049bca7bf611fdc36bb5aad04995 100644 --- a/include/fcl/deprecated.h +++ b/include/fcl/deprecated.h @@ -41,14 +41,13 @@ // variable as deprecated (i.e. it will emit a warning when using it). // // Tagging a function as deprecated: -// void foo () FCL_DEPRECATED; +// FCL_DEPRECATED void foo (); // // Tagging a type as deprecated: -// class Foo {}; -// typedef Foo Bar FCL_DEPRECATED; +// FCL_DEPRECATED class Foo {}; // // Tagging a variable as deprecated: -// int a FCL_DEPRECATED = 0; +// FCL_DEPRECATED int a = 0; // // The use of a macro is required as this is /not/ a standardized // feature of C++ language or preprocessor, even if most of the