[AMTL] Is there any way to clone a ke::Vector?
i have the following code:
PHP Code:
i was using the amxmodx sdk from here 1>amxmodx\modules\waypoint\Waypoint.h(15): error C2248: 'ke::Vector<int,ke::SystemAllocatorPolicy>::o perator =': cannot access private member declared in class 'ke::Vector<int,ke::SystemAllocatorPolicy>' 1> amxmodx\public\amtl\amtl/am-vector.h(221): note: see declaration of 'ke::Vector<int,ke::SystemAllocatorPolicy>::o perator =' 1> amxmodx\modules\waypoint\Waypoint.h(13): note: see declaration of 'ke::Vector<int,ke::SystemAllocatorPolicy>' |
Re: [AMTL] Is there any way to clone a ke::Vector?
You have to copy it manually with iteration, the copy constructor isn't implemented for ke::Vector.
However if your item type is simple and can be copied just by copying bits (for example has no copy constructor with side effects, like primitive types), you can just memcpy it. Code:
#include <cstring> |
All times are GMT -4. The time now is 07:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.