| |

VerySource

 Forgot password?
 Register
Search
View: 688|Reply: 4

Ask for advice! How to implement function name reshaping when function is overloaded?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-22 16:20:01
| Show all posts |Read mode
In C ++, overloaded function names will be resized to different names for correct calls.
Excuse me, what are the rules for name reformation?
Reply

Use magic Report

0

Threads

41

Posts

28.00

Credits

Newbie

Rank: 1

Credits
28.00

 China

Post time: 2020-2-2 00:09:01
| Show all posts
Compiler related, as if every compiler is different
Reply

Use magic Report

0

Threads

78

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-2 14:27:01
| Show all posts
Function name shuffling is compiler-dependent,
Different compilers will use different rules ~~
Reply

Use magic Report

0

Threads

78

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-2 15:00:01
| Show all posts
Basically, it takes parameters, etc. as additional information,
Regenerate a name to ensure its uniqueness ~~

But generally you don't need to care about this detail.
You can also use the connection identifier extern "C" to limit the name reshuffling ~~
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-4 16:30:01
| Show all posts
See also: Thinking in C ++
Agree upstairs
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list