Skip to content

Including certain header files causes build errors due to duplicate functions. #11

@MikiyaKobayashi

Description

@MikiyaKobayashi

■ Corresponding version
v.2.4.0 and Before v.2.4.0

■ Contents and Occurrence conditions
Including a specific header file in which the abs function is defined will result in the following build error.
error: too many arguments provided to function-like macro invocation

Header files that cause build errors when included are listed below.
<algorithm>, <any>, <array>, <atomic>, <bitset>, <ccomplex>, <chrono>, <codecvt>, <complex>, <condition_variable>, <ctgmath>, <deque>, <filesystem>, <format>, <forward_list>, <fstream>, <functional>, <iomanip>, <ios>, <iostream>, <istream>, <list>, <locale>, <map>, <mdspan>, <memory>, <memory_resource>, <mutex>, <numeric>, <optional>, <ostream>, <print>, <queue>, <random>, <ranges>, <regex>, <scoped_allocator>, <set>, <span>, <sstream>, <stack>, <streambuf>, <string>, <string_view>, <strstream>, <system_error>, <unordered_map>, <unordered_set>, <valarray>, <vector>

■ Workaround
Before including the specific header file in which the abs function is defined, write the following.
#undef abs

■ Permanent measures
Scheduled to be fixed in v.2.4.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions