satoren / kaguya

C++ binding to Lua
Boost Software License 1.0
345 stars 70 forks source link

Build error on macOS Sierra #59

Closed Arthapz closed 7 years ago

Arthapz commented 7 years ago

Hi, Kaguya don't work on macOS

`/include/kaguya/object.hpp:86:11: error: no viable conversion from returned value of type 'bititerator<std::1::vector<bool, std::1::allocator >, true>' to function return type 'const void *' return &object; ^~~~ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/object.hpp:63:3: note: in instantiation of member function 'kaguya::ObjectWrapper<std::1::bit_const_reference<std::1::vector<bool, std::_1::allocator > > >::cget' requested here ObjectWrapper(Args&&... args) : object(std::forward(args)...) {} ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/object.hpp:732:17: note: in instantiation of function template specialization 'kaguya::ObjectWrapper<std::1::bit_const_reference<std::1::vector<bool, std::1::allocator > >

::ObjectWrapper<std::1::bit_const_reference<std::1::vector<bool, std::1::allocator > > >' requested here new(storage) wrapper_type(std::forward(v)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/type.hpp:66:16: note: in instantiation of function template specialization 'kaguya::util::object_push<std::1::bit_const_reference<std::1::vector<bool, std::1::allocator > > >' requested here return util::object_push(l,std::forward(v)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/utility.hpp:200:64: note: in instantiation of member function 'kaguya::lua_type_traits<std::1::bit_const_reference<std::1::vector<bool, std::1::allocator > >, void>::push' requested here int c = lua_type_traits<typename traits::decay::type>::push(l, std::forward(arg)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/utility.hpp:233:22: note: in instantiation of function template specialization 'kaguya::util::push_args<std::1::bit_const_reference<std::1::vector<bool, std::1::allocator > >>' requested here int count = util::push_args(state, std::forward(v)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/lua_ref_table.hpp:497:11: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all) util::one_push(l, it); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/utility.hpp:200:64: note: in instantiation of member function 'kaguya::lua_type_traits<std::1::vector<bool, std::1::allocator >, void>::push' requested here int c = lua_type_traits<typename traits::decay::type>::push(l, std::forward(arg)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/utility.hpp:233:22: note: in instantiation of function template specialization 'kaguya::util::push_args<std::1::vector<bool, std::1::allocator > &>' requested here int count = util::push_args(state, std::forward(v)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/detail/lua_table_def.hpp:37:11: note: in instantiation of function template specialization 'kaguya::util::one_push<std::1::vector<bool, std::1::allocator > &>' requested here util::one_push(state, std::forward(value)); ^ /Users/arthapz/Downloads/ObEngine-master/extlibs/include/kaguya/lua_ref_table.hpp:58:25: note: in instantiation of function template specialization 'kaguya::detail::table_proxy::set<std::1::vector<bool, std::1::allocator > &, std::1::basic_string &>' requested here detail::tableproxy::set(state, tableindex, key_, std::forward(src)); ^ /Users/arthapz/Downloads/ObEngine-master/src/GameObject.cpp:296:51: note: in instantiation of function template specialization 'kaguya::TableKeyReferenceProxy<std::1::basic_string >::operator=<std::1::vector<bool, std::1::allocator > &>' requested here (m_objectScript)["cpp_param"][it->first] = allParam->at(it->first).second.as<std::vector>();`

satoren commented 7 years ago

Thank you for report

Arthapz commented 7 years ago

There is still somes errors https://pastebin.com/gn649C0X

satoren commented 7 years ago

Can you update kaguya? look like line number is old version

Arthapz commented 7 years ago

with updated kaguya https://pastebin.com/Jx8kbkLv

satoren commented 7 years ago

I'm sorry, missed merge in 9c25fa21b7b891a150eb076bb2a6d5df618cb8fe