Page 1 of 1

Compile error Rev: 02b6140b355e8de211c49a1dde0867124a723782

Posted: Sat Feb 08, 2014 6:31 am
by lentik
Hi There,

i got an compile error in the charutils since commit revision 02b6140b355e8de211c49a1dde0867124a723782:

gcc (Debian 4.8.2-14) 4.8.2

Error:
src/map/utils/charutils.cpp: In function 'int32 charutils::hasTrait(CCharEntity*, uint8)':
src/map/utils/charutils.cpp:2577:122: error: cannot pass objects of non-trivially-copyable type 'string_t {aka class std::basic_string<char>}' through '...'
ShowError("charutils::hasTrait Attempt to reference a trait from a non-character entity: %s %i", PChar->name, PChar->id);
^
src/map/utils/charutils.cpp: In function 'int32 charutils::addTrait(CCharEntity*, uint8)':
src/map/utils/charutils.cpp:2587:122: error: cannot pass objects of non-trivially-copyable type 'string_t {aka class std::basic_string<char>}' through '...'
ShowError("charutils::addTrait Attempt to reference a trait from a non-character entity: %s %i", PChar->name, PChar->id);
^
src/map/utils/charutils.cpp: In function 'int32 charutils::delTrait(CCharEntity*, uint8)':
src/map/utils/charutils.cpp:2597:122: error: cannot pass objects of non-trivially-copyable type 'string_t {aka class std::basic_string<char>}' through '...'
ShowError("charutils::delTrait Attempt to reference a trait from a non-character entity: %s %i", PChar->name, PChar->id);
^
best regards

Re: Compile error Rev: 02b6140b355e8de211c49a1dde0867124a723

Posted: Sat Feb 08, 2014 2:51 pm
by kjLotus

Re: Compile error Rev: 02b6140b355e8de211c49a1dde0867124a723

Posted: Sat Feb 08, 2014 5:14 pm
by lentik
thx too !