olvaffe / percetto

Apache License 2.0
19 stars 10 forks source link

Ensure that equal types are passed to atomic op templates #9

Closed gerddie closed 3 years ago

gerddie commented 3 years ago

Fixes compile errors with g++8:

/usr/include/c++/8/atomic:1299:5: note: candidate: 'template _ITp std::atomic_fetch_and(volatile std::atomic_base<_ITp>, _ITp)' atomic_fetch_and(volatile __atomic_base<_ITp> __a, _ITp i) noexcept ^~~~ /usr/include/c++/8/atomic:1299:5: note: template argument deduction/substitution failed: ../src/percetto.cc:211:63: note: deduced conflicting types for parameter '_ITp' ('long unsigned int' and 'int') 1 << args.internal_instance_index);

Signed-off-by: Gert Wollny gert.wollny@collabora.com