Including certain header files causes build errors due to duplicate functions. #11
Labels
applies-to-v1.0.0
applies-to-v2.0.0
applies-to-v2.1.0
applies-to-v2.2.0
applies-to-v2.2.1
applies-to-v2.3.0
applies-to-v2.4.0
bug
Something isn't working
■ 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
The text was updated successfully, but these errors were encountered: