Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 737211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:41:43+00:00 2026-05-14T07:41:43+00:00

I am getting an error that says: error: looser throw specifier for ‘virtual CPLAT::CP_Window::~CP_Window()’

  • 0

I am getting an error that says:

error: looser throw specifier for ‘virtual CPLAT::CP_Window::~CP_Window()’

On the destructor, I have never heard of this before and some Google Searches say this might be a GCC 4 problem, which I would not be sure how to work around since I need GCC 4 to build a Universal Binary.

My Environment: OS X 10.6, XCode 3.2.2, GCC 4 to build a universal binary.

What is the issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:41:43+00:00Added an answer on May 14, 2026 at 7:41 am

    I assume that CPLAT has a base class? I’m also guessing that you did not put a throw specifier on CPLAT’s destructor?

    You can put throw(X) (where X is a comma-separated list of exceptions) at the end of a function’s signature to indicate what exceptions it’s allowed to throw. If you put throw() as the throw specifier, then it would indicate that no exceptions can be thrown from that function. It’s fairly common to do this with destructors since you don’t ever want a destructor to throw an exception.

    A class that overrides a function which has a throw specifier cannot have a looser throw specifier (list more exceptions) than the function being overridden, since that would indicate that the derived class’ function could violate the throw specifier of the base class’ function. Not having a throw specifier means that any exception can be thrown from that function, so it’s as loose as it can get.

    In all likelihood, you need to add throw() to the end of the function signature of CPLAT’s destructor.

    Edit: By the way, I should probably add that you probably don’t want to use throw specifiers (other than throw() on destructors) without really knowing that that’s what you want. Unlike Java’s checked exceptions, they’re not caught at compile-time but rather terminate your program at runtime if violated. So, it’s best not to use them unless you know what you’re doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the NRE error that says: Object reference not set to an instance
I keep getting a Run Time error that says I am having an Exception
I am getting an error that says: 'object' does not contain a definition for
I am getting an error that says to check if the file is actually
For some reason I keep getting a error that says toupper cannot be used
I'm getting an error that says: The model item passed into the dictionary is
I am getting an error message that says undefined reference to encrypt(int, std::list<int, std::allocator<int>
I am getting the error that says some content is being delivered non secure
I'm getting an error here that says I haven't defined a method, but it
I'm getting an error that says java.lang.NullPointerException: null from a code whenever I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.