mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
Merge pull request #281 from ken-matsui/use-is_void
Use is_void<T> instead of is_same<T, void>
This commit is contained in:
@@ -32,7 +32,7 @@ struct bad_result_access final : public ::toml::exception
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
struct success
|
struct success
|
||||||
{
|
{
|
||||||
static_assert( ! std::is_same<T, void>::value, "");
|
static_assert( ! std::is_void<T>::value, "");
|
||||||
|
|
||||||
using value_type = T;
|
using value_type = T;
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ struct success
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
struct success<std::reference_wrapper<T>>
|
struct success<std::reference_wrapper<T>>
|
||||||
{
|
{
|
||||||
static_assert( ! std::is_same<T, void>::value, "");
|
static_assert( ! std::is_void<T>::value, "");
|
||||||
|
|
||||||
using value_type = T;
|
using value_type = T;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user