digitalmars.D.learn - How does noexcept work?
- Jeroen Bollen (5/5) Nov 19 2013 If I have a function:
- Namespace (11/16) Nov 19 2013 Did you mean nothrow?
- Jeroen Bollen (3/20) Nov 19 2013 Thanks, don't mind me being stupid. I was getting confused with
If I have a function: safe pure void functionName() { return; } Where do I put the noexcept?
Nov 19 2013
On Tuesday, 19 November 2013 at 18:01:19 UTC, Jeroen Bollen wrote:If I have a function: safe pure void functionName() { return; } Where do I put the noexcept?Did you mean nothrow? You can put it unfortunately on both sides. left: safe pure nothrow void functionName() { return; } right: safe pure void functionName() nothrow { return; }
Nov 19 2013
On Tuesday, 19 November 2013 at 18:09:29 UTC, Namespace wrote:On Tuesday, 19 November 2013 at 18:01:19 UTC, Jeroen Bollen wrote:Thanks, don't mind me being stupid. I was getting confused with C++. *facepalm*If I have a function: safe pure void functionName() { return; } Where do I put the noexcept?Did you mean nothrow? You can put it unfortunately on both sides. left: safe pure nothrow void functionName() { return; } right: safe pure void functionName() nothrow { return; }
Nov 19 2013