nafuka11 / ft_containers

Reimplementation of STL containers
0 stars 0 forks source link

clang++ -pedanticでコンパイルエラー #36

Closed nafuka11 closed 3 years ago

nafuka11 commented 3 years ago
clang++ -Wall -Wextra -Werror -std=c++98 -I./includes -I./tests -pedantic -o objs_ft/tests/main.o -D IS_FT=1 -c tests/main.cpp
In file included from tests/main.cpp:3:
In file included from ./tests/test.hpp:11:
In file included from ./includes/vector.hpp:9:
In file included from ./includes/iterator.hpp:5:
./includes/type_traits.hpp:114:31: error: 'long long' is a C++11 extension
      [-Werror,-Wc++11-long-long]
    struct is_integral_helper<long long> : public true_type {};
                              ^
./includes/type_traits.hpp:116:40: error: 'long long' is a C++11 extension
      [-Werror,-Wc++11-long-long]
    struct is_integral_helper<unsigned long long> : public true_type {};
                                       ^