TRIQS/triqs — pull request #156 by krivenko (2014-11-18 14:11:15+00:00)
Title: Throw in py2c of boost::variant converter

After a brief discussion with Olivier (https://github.com/TRIQS/triqs/commit/ae88e397c0e5c220cd96306544301e2f5e88bd1f#commitcomment-8584681) I'm convinced, that `py_converter::py2c_impl::apply()` should throw.

This has 3 advantages:
- The code will compile even if the first bounded type of `variant` hasn't got a default constructor (tested);
- The compiler will not issue a warning about a missing `return` statement (also tested);
- If something goes terrible wrong with the converter, one will know, what exactly.