boostorg / boostorg/type_traits

compiler warning on 64bits gcc

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

Description

Hi

File is_complete.hpp make warning in line 47:

template
struct ok_tag { double d; char c[N]; };
template
ok_tag check_is_complete(int);

specialization ok_tag check_is_complete(int); make implicit cast from unsigned long long (size_t is unsigned long long on 64 arch) to unsigned (32bits) and ugly warning on output.
It may be easy overcome and make more portable by:

template
struct ok_tag { double d; char c[N]; };

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.