cpp/utility/functional/bad function call

is the type of the exception thrown by if the function wrapper has no target.