Mir

Code review comment for lp:~afrantzis/mir/report-egl-errors-in-exceptions

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> mg::egl_error is a convenience class. For all intents the purpose, the
> exception we are throwing is a std::system_error with an egl_category.

a convenience class that could be replaced by a convenience function?

inline auto egl_error(std::string const& msg) -> std::system_error
{
    return std::system_error(eglGetError(), egl_category(), msg);
}

« Back to merge proposal