Skip to content

Commit 12c5b39

Browse files
committed
Fix proplems on newer compiler
1 parent 5c0c70f commit 12c5b39

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/python/python_utility/custom_converters.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ namespace converters {
5656
/******************************************************************************************/
5757

5858
template<typename T>
59+
requires ( std::is_integral_v< std::remove_const_t<T> >)
5960
converters::PyListToVectorConverter<T>::PyListToVectorConverter() {
6061
using namespace boost::python;
6162

@@ -68,6 +69,7 @@ converters::PyListToVectorConverter<T>::PyListToVectorConverter() {
6869
}
6970

7071
template<typename T>
72+
requires ( std::is_integral_v< std::remove_const_t<T> >)
7173
void* converters::PyListToVectorConverter<T>::convertible(PyObject* obj_ptr) {
7274
using namespace boost::python;
7375

@@ -78,6 +80,7 @@ void* converters::PyListToVectorConverter<T>::convertible(PyObject* obj_ptr) {
7880
}
7981

8082
template<typename T>
83+
requires ( std::is_integral_v< std::remove_const_t<T> >)
8184
void converters::PyListToVectorConverter<T>::construct(PyObject* obj_ptr, rvalueFromPythonData* data) {
8285

8386
using namespace boost::python;
@@ -102,6 +105,7 @@ void converters::PyListToVectorConverter<T>::construct(PyObject* obj_ptr, rvalue
102105
}
103106

104107
template<typename T>
108+
requires ( std::is_integral_v< std::remove_const_t<T> >)
105109
converters::PyIntToIntegralValueConverter<T>::PyIntToIntegralValueConverter() {
106110
using namespace boost::python;
107111

@@ -114,6 +118,7 @@ converters::PyIntToIntegralValueConverter<T>::PyIntToIntegralValueConverter() {
114118
}
115119

116120
template<typename T>
121+
requires ( std::is_integral_v< std::remove_const_t<T> >)
117122
void* converters::PyIntToIntegralValueConverter<T>::convertible(PyObject* obj_ptr) {
118123
using namespace boost::python;
119124

@@ -124,6 +129,7 @@ void* converters::PyIntToIntegralValueConverter<T>::convertible(PyObject* obj_pt
124129
}
125130

126131
template<typename T>
132+
requires ( std::is_integral_v< std::remove_const_t<T> >)
127133
void converters::PyIntToIntegralValueConverter<T>::construct(PyObject* obj_ptr, rvalueFromPythonData* data) {
128134
using namespace boost::python;
129135

0 commit comments

Comments
 (0)