boostorg / phoenix

Boost.org phoenix module
http://boost.org/libs/phoenix
30 stars 46 forks source link

Proviede accessibility to thrown exception for catch_ stmt. #13

Closed Flast closed 9 years ago

Flast commented 9 years ago

Hi @fletchjp and @djowel !

This PR contains a feature enhancement which provides accessibility to thrown exception for catch_ stmt. e.g.

try_
[
    throw_(runtime_error("error"))
]
.catch_<exception>(local_names::e_) // Note, accepts local variables only.
[
    std::cout << bind(&exception::what, local_names::e_) << std::endl;
]

If OK to merge, I will push one more patch which just regenerating preprocessed files: 401968b7622fd6f672ce6fa4db7a36a359ec733c.

see also: #5604

djowel commented 9 years ago

nice! looks good to me!

fletchjp commented 9 years ago

Kohei

Thank you again. This looks good.

John


From: Joel de Guzman [notifications@github.com] Sent: 27 March 2015 05:23 To: boostorg/phoenix Cc: Fletcher, John P Subject: Re: [phoenix] Proviede accessibility to thrown exception for catch_ stmt. (#13)

nice! looks good to me!

� Reply to this email directly or view it on GitHubhttps://github.com/boostorg/phoenix/pull/13#issuecomment-86829166.

Flast commented 9 years ago

Thanks!