What is the printf specifier for atomic_uint_fast64_t type? I tried
#include <inttypes.h>
std::atomic_uint_fast64_t number(98);
printf("%" PRId64 "\n", number);
But I got an error:
error: use of deleted function ‘std::atomic<long unsigned int>::atomic(const std::atomic<long unsigned int>&)’
printf("%" PRId64 "\n", number);
Aucun commentaire:
Enregistrer un commentaire