Skip to content

Commit

Permalink
fix build with fmt-v11
Browse files Browse the repository at this point in the history
  • Loading branch information
daizhirui committed Sep 15, 2024
1 parent dbb3c7d commit 3773d81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/open3d/t/geometry/RaycastingScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ namespace fmt {
template <>
struct formatter<RTCError> {
template <typename FormatContext>
auto format(const RTCError& c, FormatContext& ctx) {
auto format(const RTCError& c, FormatContext& ctx) const {
const char* name = rtcGetErrorString(c);
return format_to(ctx.out(), name);
}
Expand Down
3 changes: 1 addition & 2 deletions cpp/open3d/utility/IJsonConvertible.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ namespace fmt {
template <>
struct formatter<Json::Value> {
template <typename FormatContext>
auto format(const Json::Value &value, FormatContext &ctx)
-> decltype(ctx.out()) {
auto format(const Json::Value &value, FormatContext &ctx) const -> decltype(ctx.out()) {
return format_to(ctx.out(), "{}", open3d::utility::JsonToString(value));
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/open3d/visualization/rendering/RendererHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ struct formatter<
char>> {
template <typename FormatContext>
auto format(const open3d::visualization::rendering::REHandle_abstract& uid,
FormatContext& ctx) -> decltype(ctx.out()) {
FormatContext& ctx) const -> decltype(ctx.out()) {
return format_to(ctx.out(), "[{}, {}, hash: {}]",
open3d::visualization::rendering::REHandle_abstract::
TypeToString(uid.type),
Expand Down

0 comments on commit 3773d81

Please sign in to comment.