boostorg / boostorg/type_traits

add is_bool

Open
#190 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
66
Forks
87
PR merge metrics
No merged PRs in 30d

Description

is_bool.hpp
```
// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt
// Copyright Gero Peterhoff

#ifndef BOOST_TYPE_TRAITS_IS_BOOL_HPP
#define BOOST_TYPE_TRAITS_IS_BOOL_HPP

#include
#include

namespace boost
{
template struct is_bool : public integral_constant
<
bool,
is_same::type, bool>::value
> {};

#if !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template inline constexpr bool is_bool_v = is_bool::value;
#endif
} // boost

#endif // BOOST_TYPE_TRAITS_IS_BOOL_HPP
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the proposed is_bool.hpp content in the issue and nearby Boost.TypeTraits headers for naming and layout conventions. The work is done when the requested is_bool trait and is_bool_v definition are added in that header.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.