mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
common: ++portablity
fix a error call of ambiguous overloaded ‘free(void*&)’
This commit is contained in:
parent
8e1cd7b4c6
commit
a768276bb6
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ namespace tvg {
|
|||
return static_cast<T>(std::realloc(ptr, size));
|
||||
}
|
||||
|
||||
template<typename T = void*>
|
||||
static inline void free(void* ptr)
|
||||
{
|
||||
std::free(ptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue