β

C3409: empty attribute block is not allowed by nor

User zangw - Stack Overflow 217 阅读
c++

I get one error C3409: empty attribute block is not allowed from noreturn in VS2013.

Here are code snippets:

#ifndef CPPX_NORETURN
#   define  CPPX_NORETURN [[noreturn]]
#endif
...
namespace std {
    class nested_exception
    {
    private:
        exception_ptr nested;
    public:
        CPPX_NORETURN      // error is here
             void rethrow_nested() const
        {
            rethrow_exception(nested);
        }

Could someone help me to figure out how to fix this error? Thanks in advance.

c++
作者:User zangw - Stack Overflow
most recent 30 from stackoverflow.com
原文地址:C3409: empty attribute block is not allowed by nor, 感谢原作者分享。

发表评论