Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 2bb1531af240c49e6cdc8fec94a21b814cb7ea30) (https://github.com/llvm-mirror/llvm.git d1f07078e8db8d6d86edec4aef5eb4c2b65a9739)

Options
Warnings
Boost 1.68.0
C++17
no pedantic
Raw compiler options
-Weverything -Wno-c++98-compat -Wno-c++98-c++11-compat

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=c++17 -Weverything -Wno-c++98-compat -Wno-c++98-c++11-compat
prog.cc:1:64: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion]
constexpr auto max = [](auto a, auto b) constexpr { return a < b ? b : a; };
                                                             ~ ^
prog.cc:5:6: note: in instantiation of function template specialization '(anonymous class)::operator()<double, float>' requested here
  max(0.1, value);
     ^
prog.cc:1:68: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion]
constexpr auto max = [](auto a, auto b) constexpr { return a < b ? b : a; };
                                                    ~~~~~~         ^
2 warnings generated.
Exit Code:
0