You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in lmdb::dbi_put there is no way to put an element like :
int data[10]
lmdb::val lmdbData((void*)data, sizeof(int)*10 );
...
dbi.put(wtxn, "data", lmdbData))
The text was updated successfully, but these errors were encountered:
Hi! I see you solved your initial problem and edited your post. As you discovered, the issue was the problematic template overloads provided by this library. Many people have tripped over this same issue, which is why I have removed them in my fork:
If I understand, your bug report is now suggesting adding an overload of put(txn, const char *, lmdb::val &) ? You could submit a PR for this, but this library is currently not maintained.
If you want to use my fork, something like this should work:
int data[10];
dbi.put(wtxn, "data", std::string_view((const char*)data, sizeof(data)));
in lmdb::dbi_put there is no way to put an element like :
int data[10]
lmdb::val lmdbData((void*)data, sizeof(int)*10 );
...
dbi.put(wtxn, "data", lmdbData))
The text was updated successfully, but these errors were encountered: