eina-cxx: Add visit_unsafe to eina::variant and make ~variant possibly noexcept
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 20 Dec 2016 18:33:57 +0000 (15:33 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 20 Dec 2016 18:33:57 +0000 (15:33 -0300)
commitae822a396ce253d563ecbaf4965cc22c6894b764
tree99339aec51016bc6af85088103992409820f3609
parent37041730170a0f4e99b501379b52e7c72e3f581a
eina-cxx: Add visit_unsafe to eina::variant and make ~variant possibly noexcept

visit_unsafe member function visits the variant but assumes the
pre-condition that the variant is not empty. This avoids the
possibility of throwing an exception when the destructors
of the types used in variant are also guaranteed to be
noexcept.

CID 1367508
src/bindings/cxx/eina_cxx/eina_variant.hh