ISO C++ forbids comparison between pointer and integer

ISO C++ forbids comparison between pointer and integer

 

#pragma once

#include <stdexcept>

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

 

posted @ 2021-02-06 22:48  papering  阅读(1081)  评论(0编辑  收藏  举报