Skip to content

Commit

Permalink
Make attribute const for enumeration getter in C++ API (#5457)
Browse files Browse the repository at this point in the history
Add `const` to `attribute` in
`AttributeExperimental::get_enumeration_name`.

---
TYPE: CPP_API
DESC: Add `const` to `attribute` in
`AttributeExperimental::get_enumeration_name`
  • Loading branch information
jp-dark authored Feb 14, 2025
1 parent a22fe13 commit 4e31065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiledb/sm/cpp_api/attribute_experimental.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class AttributeExperimental {
* @return std::optional<std::string> The enumeration name if one exists.
*/
static std::optional<std::string> get_enumeration_name(
const Context& ctx, Attribute& attribute) {
const Context& ctx, const Attribute& attribute) {
// Get the enumeration name as a string handle
tiledb_string_t* enmr_name;
tiledb_ctx_t* c_ctx = ctx.ptr().get();
Expand Down

0 comments on commit 4e31065

Please sign in to comment.