From 1c73fb054b44c52519d88fc00d5e3887d6ade6d7 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 5 Nov 2016 23:25:46 -0400 Subject: [PATCH] std::cend doesn't exist in older compiler versions... --- sol/container_usertype_metatable.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/container_usertype_metatable.hpp b/sol/container_usertype_metatable.hpp index e7632b5f..268f8db1 100644 --- a/sol/container_usertype_metatable.hpp +++ b/sol/container_usertype_metatable.hpp @@ -209,8 +209,8 @@ namespace sol { } static int real_add_call_push(std::false_type, lua_State*L, T& src, int boost = 0) { - using std::cend; - src.insert(cend(src), stack::get(L, 2 + boost)); + using std::end; + src.insert(end(src), stack::get(L, 2 + boost)); return 0; }