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 7811893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:19:52+00:00 2026-06-02T04:19:52+00:00

I am trying to iron out my first compile in a long time, and

  • 0

I am trying to iron out my first compile in a long time, and I think this is the last hurdle.

I am trying to create this type of hierarchy in my design.

  class chin_
  {
  private:
    charon_* engine;

  public:
    chin_();
    chin_(charon_ &handle)
    {
      engine = handle;
    }
    ~chin_();
  };

//////////////

  class charon_ {
  private:
    chin_ engine_input;

  public:
    charon_(){
      engine_input = chin_(this);
    }
    ~charon_();
  };

I am getting errors that tell me there is no matching function for call to

'chio::chin_::chin()'

it also says, mind you this is only when I change the constructor to charon_&

public:
        chin_(const charon_ &handle)
        {
          engine = handle;
        }
sys/../headers/chio.h:104:5: note:   no known conversion for argument 1 from ‘charon::charon_* const’ to ‘const charon::charon_&’

When I use the * instead of & I get this instead, which is by far more baffling.

sys/../headers/chio.h:104:5: note: chio::chin_::chin_(const charon::charon_*)
sys/../headers/chio.h:104:5: note:   candidate expects 1 argument, 0 provided

I’ve tried this and that, and I figure it is probably something super simple. I’ve tried to match my code up squarely with the examples I’ve found though so I don’t know what else I should be trying, I’d like to be able to figure this sort of stuff out on my own. I just am not having any luck with it.

EDIT:
I update the code but I left the updated error for the bottom.

sys/chin.cpp:19:14: error: cannot convert ‘charon::charon_’ to ‘charon::charon_*’ in assignment

It takes me to this code

  chin_::chin_(charon_ &handle) {
    engine = handle;
  }

engine is defined as
charon_* engine; and handle appears to be an address and should fall right into place, but it isn’t. I think I am not using this correctly.

  • 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-06-02T04:19:54+00:00Added an answer on June 2, 2026 at 4:19 am

    When you declare something like this :

      chin_ engine_input;
    

    chin_ needs a constructor with no parameters or you have to pass the parameters to it in the initializer list, otherwise you will get the error about no matching constructor.

    What you can do is either have a default constructor that takes no params. Or make engine_input a pointer and create it with :

     engine_input = new chin_(handle);
    

    Alternatively you can pass handle to chin_ in the initializer list like this :

     foo::foo(charon* handle):
     chin_(handle)
    {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so I have been trying to iron out this data binding for a
I'm trying to iron out the last few bugs in my application. With my
Trying out PDO for the first time. $dbh = new PDO(mysql:host=$hostname;dbname=animals, $username, $password); $stmt
Trying to figure out how I can do this properly. The print_r looks like
trying to figure out why this is happening - I have an input text
One of the most requested features I'm trying to iron out for RazorEngine vNext
I'm trying to get this block of code to determine planet type based off
I'm trying to iron out the warnings and notices from a script. The script
I'm having a weird problem right now. I'm trying to iron out a CSS
Iv been trying to figure this one out forever, and its starting to annoy

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.