Deleted to prevent returning a pointer into an rvalue source.

Synopsis

Declared in <folly/lang/Exception.h>

template<typename Ex = std::exception>
void
get_exception(Src&& s) noexcept = delete;
Note

This function is defined as an Algorithm Function Object (AFO).

Description

It is unsafe to use get_exception() to get a pointer into an rvalue. If you know what you're doing, add a static_cast.

Parameters

Name

Description

s

The rvalue source (this overload is deleted).

Created with MrDocs