Hi,
Compiling the latest angelscript release "2.30.0 WIP" with GCC 5.1 (in c++14 mode) gives these warnings:
/home/hhyyrylainen/leviathan/AngelScript/include/angelscript.h: Funktio ”asUINT asGetTypeTraits()”:
/home/hhyyrylainen/leviathan/AngelScript/include/angelscript.h:597:80: varoitus: ”template<class _Tp> struct std::has_trivial_default_constructor” is deprecated [-Wdeprecated-declarations]
bool hasConstructor = std::is_default_constructible<T>::value && !std::has_trivial_defaul
^
In file included from /usr/include/c++/5.1.1/bits/move.h:57:0,
from /usr/include/c++/5.1.1/bits/stl_pair.h:59,
from /usr/include/c++/5.1.1/bits/stl_algobase.h:64,
from /usr/include/c++/5.1.1/bits/char_traits.h:39,
from /usr/include/c++/5.1.1/string:40,
from /home/hhyyrylainen/leviathan/Engine/Define.h:13,
from /home/hhyyrylainen/leviathan/Engine/Engine.h:3,
from /home/hhyyrylainen/leviathan/Engine/Engine.cpp:2:
/usr/include/c++/5.1.1/type_traits:1383:12: huom: esitelty täällä
struct has_trivial_default_constructor
^
In file included from /home/hhyyrylainen/leviathan/Engine/Script/ScriptExecutor.h:11:0,
from /home/hhyyrylainen/leviathan/Engine/Application/Application.h:7,
from /home/hhyyrylainen/leviathan/Engine/Engine.cpp:6:
/home/hhyyrylainen/leviathan/AngelScript/include/angelscript.h:599:80: varoitus: ”template<class _Tp> struct std::has_trivial_copy_assign” is deprecated [-Wdeprecated-declarations]
bool hasAssignmentOperator = std::is_copy_assignable<T>::value && !std::has_trivial_copy_a
More warnings: http://pastebin.com/1gc26Rnt
This should be a pretty easy fix, just renaming the functions to is_trivially_default_constructible.