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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:27:02+00:00 2026-05-15T11:27:02+00:00

If you define a type like typedef int MY_INT; and go on to overload,

  • 0

If you define a type like typedef int MY_INT; and go on to overload, say, the adition operator of MY_INT like

MY_INT operator+(MY_INT a, MY_INT b);

will

MY_INT a, b;
a + b;

be different from

int A, B;
A + B;

?

Sorry for any syntax errors. I’m not near a compiler and I want to ask this before I forget about it.

  • 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-15T11:27:03+00:00Added an answer on May 15, 2026 at 11:27 am

    No. A typedef is actually an alias for another type. The original and typedef-ed types are the same.

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

Sidebar

Related Questions

I want to define a ref type variable, like this: SomeType v=null; and this
Why is there no list-style infinite type error when I define something like this
I have a type defined like this: struct DynTab_s { int object_count; //other fields
I am serializing the cl_long2 type from OpenCL which is defined like this (simplified
I want to do something like this: #define EQ4(a_,b_) (*(int*)(a_)==*(int*)(b_)) char *s1 = food;
I've a hash table defined like this typedef std::unordered_map<unsigned long long int,unsigned long long
I have the following macro: ‎#define GTR(type) \‎ type type##_gtr(type a, type b) \‎
Can you suggest a best way to define money type in F#?
Linux's stddef.h defines offsetof() as: #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) whereas the Wikipedia
I define an enumerated type in MATLAB classdef(Enumeration) Color < Simulink.IntEnumType enumeration RED(0), GREEN(1),

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.