Skip to content

Commit

Permalink
fix build with fmt-v11 (#6969)
Browse files Browse the repository at this point in the history
  • Loading branch information
daizhirui authored Sep 16, 2024
1 parent dbb3c7d commit 165ff2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion cpp/open3d/utility/IJsonConvertible.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace fmt {
template <>
struct formatter<Json::Value> {
template <typename FormatContext>
auto format(const Json::Value &value, FormatContext &ctx)
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 165ff2b

Please sign in to comment.