Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
AdAddendum A19 - C++ operator= question
Avatar
Nowhk
New Member
Members
January 5, 2021 - 6:37 am
Member Since: January 5, 2021
Forum Posts: 2
sp_UserOfflineSmall Offline

Hi,

I see on the AdAddendum A19 that you remove the operator= on some class (for example, here, page 86):

struct ClassAValveParameters
{
ClassAValveParameters() {}
ClassAValveParameters& operator=()
(removed here)

which should be written as (typo?):

struct ClassAValveParameters
{
ClassAValveParameters() {}
ClassAValveParameters &operator=(const ClassAValveParameters &obj);
(removed here)

right?

But why? When I'll set parameters, it fill fails and Linker stop the execution:

void ClassAValve::SetParamerers(ClassAValveParameters _parameters) {
    parameters = _parameters;
}

saying "undefined reference to `ClassAValveParameters::operator=(ClassAValveParameters const&)'"

Maybe you can clarify this to me? Thanks

Avatar
Nowhk
New Member
Members
January 5, 2021 - 8:35 am
Member Since: January 5, 2021
Forum Posts: 2
sp_UserOfflineSmall Offline

Ok, got it using WickerAmpComboASPiK.zip project 😉

Thanks

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 691

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 754

Posts: 2881

Newest Members:

Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin, joelr, PseudoSpaceMusic, duo.dirtykidz, Paul, Reakenzo

Moderators: W Pirkle: 569

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 569, VariableCook: 3