Skip to content

Commit

Permalink
Remove GZ_SINGLETON_DECLARE definition workaround (fix for armhf)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
  • Loading branch information
j-rivero committed Oct 10, 2023
1 parent 9b72949 commit e65ed2e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions gazebo/common/SingletonT.hh
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,5 @@ class SingletonT
}
};

/// \brief Helper to declare typed SingletonT
// clang doesn't compile if it explicitly specializes a type before
// the type is defined. (forward declaration is not enough.)
#ifdef __clang__
#define GZ_SINGLETON_DECLARE(visibility, n1, n2, singletonType)
#else
#define GZ_SINGLETON_DECLARE(visibility, n1, n2, singletonType) \
namespace n1 \
{ \
namespace n2 \
{ \
class singletonType; \
} \
} \
template class visibility ::SingletonT<n1::n2::singletonType>;
#endif

/// \}

#endif

0 comments on commit e65ed2e

Please sign in to comment.