mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-21 03:14:51 +08:00
Windows. type::Boolean. Fix nullptr/bool conversion.
This commit is contained in:
parent
6c9c8d3237
commit
0d3ae75b13
@ -226,20 +226,18 @@ public:
|
||||
return this->m_ptr.operator*();
|
||||
}
|
||||
|
||||
inline bool operator == (std::nullptr_t){
|
||||
return m_ptr.get() == nullptr;
|
||||
}
|
||||
|
||||
inline bool operator != (std::nullptr_t){
|
||||
return m_ptr.get() != nullptr;
|
||||
}
|
||||
|
||||
bool operator == (bool value) const {
|
||||
template<typename T,
|
||||
typename enabled = typename std::enable_if<std::is_same<T, bool>::value, void>::type
|
||||
>
|
||||
bool operator == (T value) const {
|
||||
if(!this->m_ptr) return false;
|
||||
return *this->m_ptr == value;
|
||||
}
|
||||
|
||||
bool operator != (bool value) const {
|
||||
template<typename T,
|
||||
typename enabled = typename std::enable_if<std::is_same<T, bool>::value, void>::type
|
||||
>
|
||||
bool operator != (T value) const {
|
||||
if(!this->m_ptr) return true;
|
||||
return *this->m_ptr != value;
|
||||
}
|
||||
|
@ -71,9 +71,7 @@ void runTests() {
|
||||
|
||||
OATPP_LOGD("aaa", "coroutine size=%d", sizeof(oatpp::async::AbstractCoroutine));
|
||||
OATPP_LOGD("aaa", "action size=%d", sizeof(oatpp::async::Action));
|
||||
|
||||
/*
|
||||
|
||||
OATPP_RUN_TEST(oatpp::test::base::CommandLineArgumentsTest);
|
||||
|
||||
OATPP_RUN_TEST(oatpp::test::memory::MemoryPoolTest);
|
||||
@ -90,16 +88,15 @@ void runTests() {
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::stream::ChunkedBufferTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::stream::BufferStreamTest);
|
||||
*/
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::ObjectWrapperTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::TypeTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::AnyTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::ObjectWrapperTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::TypeTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::AnyTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::StringTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::PrimitiveTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::ListTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::VectorTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::PairListTest);
|
||||
// OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::UnorderedMapTest);
|
||||
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::ListTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::VectorTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::PairListTest);
|
||||
OATPP_RUN_TEST(oatpp::test::core::data::mapping::type::UnorderedMapTest);
|
||||
/*
|
||||
OATPP_RUN_TEST(oatpp::test::async::LockTest);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user