vvish / lmdb-cpp

LMDB C++ bindings
MIT License
6 stars 2 forks source link

Remove view and iterator support if exceptions are not used #26

Open vvish opened 6 months ago

vvish commented 6 months ago

As there is no generic way to propagate error from standard algorithms and views, usage of custom input iterators that can fail can be unsafe.

It is required to enable methods returning views conditionally, if exceptions are used. If exceptions are not used method template receiving functor can be used instead ( tx.iterate_by_key(key, print_item); ).

The task is dependent on #9