ISO C++ forbids comparison between pointer and integer

 

#pragma once

#include <stdexcept>

#define check(p, msg) \
if (p == false) \
throw std::logic_error(msg)

 

相关文章: