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

  • Home
  • SEARCH
  • 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 5972235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:37:46+00:00 2026-05-22T20:37:46+00:00

Can anybody help me to clear this thing out? I use Add Member Function

  • 0

Can anybody help me to clear this thing out?
I use Add Member Function Winzard to add a function to class. If I uncheck Inline box, there is only function prototype like below appear on classname.h file:

CBox operator+(const CBox& aBox) ;

and on the classname.cpp file, there is the full function:

CBox CBox::operator+(const CBox& aBox)     {
    return CBox();
}

However, if I check the Inline box, the full function appear on classname.h file like below:

CBox operator+(const CBox& aBox)
{
    return CBox();
}

AND nothing appear on the classname.cpp.

I am not sure whether it is because of the Inline check or not?
Anyway, is this a big difference between using Inline and not Inline function that I need to worry?

Another thing is that if I check Inline box, the function is CBox operator+……
But if I uncheck Inline box, the function is CBox Cbox::operator+. What is the different meaning?

Thank you very much.

  • 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-22T20:37:47+00:00Added an answer on May 22, 2026 at 8:37 pm

    When you select in-line, it means that the code will be dropped in at the location that is being called. For this reason, the entire implementation needs to be in the header file. If you don’t select inline, it will be placed in the cpp file, as one (and only one) copy should be compiled and linked.

    Inlining code may make your application larger, but is considered faster has there is no overhead of a procedural call. Use inlining if the implementation is small.

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

Sidebar

Related Questions

can anybody help me solve this : i got $filename= index 198.php; i use
Can anybody help me to find out how to call rrd_update_r function of the
Can anybody help me out to know the possible reasons for which Apple store
Can anybody help me in finding out how to verify that _tmkdir succeeded. For
Can anybody help me with this simple code?? #include <iostream> using namespace std; void
can anybody help me ?? I want to add String value through coding in
Can anybody help me.. or teach me how to use an alternative way just
I've asked this question before with no real answer. Can anybody help? I'm profiling
Can anybody help me to build an XSD file to validate XMLs like these:
Can anybody help how to setup a automatic backup of mysql database and then

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.