Talk:E2541 Attribute '%s' cannot be set (C++)

From RAD Studio
Jump to: navigation, search

Here's an example illustrating:


int func(bool b) [[noreturn]]
{
  if (b)
    throw "Should not call this function";
  return 0; //Error E2541 noreturn.cpp 5: Attribute 'noreturn' cannot be set in ... 
}

Response

Thanks, Bruneau. We have added the code example to the topic.

KrisHouser 09:39, 22 June 2012 (PDT)