Skip to content

Commit 4e31065

Browse files
authored
Make attribute const for enumeration getter in C++ API (#5457)
Add `const` to `attribute` in `AttributeExperimental::get_enumeration_name`. --- TYPE: CPP_API DESC: Add `const` to `attribute` in `AttributeExperimental::get_enumeration_name`
1 parent a22fe13 commit 4e31065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiledb/sm/cpp_api/attribute_experimental.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class AttributeExperimental {
6666
* @return std::optional<std::string> The enumeration name if one exists.
6767
*/
6868
static std::optional<std::string> get_enumeration_name(
69-
const Context& ctx, Attribute& attribute) {
69+
const Context& ctx, const Attribute& attribute) {
7070
// Get the enumeration name as a string handle
7171
tiledb_string_t* enmr_name;
7272
tiledb_ctx_t* c_ctx = ctx.ptr().get();

0 commit comments

Comments
 (0)