$ go get launchpad.net/go-unityscopes/v2
# launchpad.net/go-unityscopes/v2
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘void new_department(void*, _CannedQuery*, void*, uintptr_t*, char**)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:26:17: error: ‘create’ is not a member of ‘unity::scopes::Department’
d = Department::create(from_gostring(dept_id),
^
src/launchpad.net/go-unityscopes/v2/department.cpp:30:17: error: ‘create’ is not a member of ‘unity::scopes::Department’
d = Department::create(*reinterpret_cast<CannedQuery*>(query),
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘void department_add_subdepartment(uintptr_t*, uintptr_t*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:44:32: error: ‘class unity::scopes::Department’ has no member named ‘add_subdepartment’
get_ptr<Department>(dept)->add_subdepartment(get_ptr<Department>(child));
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘void department_set_alternate_label(uintptr_t*, void*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:48:32: error: ‘class unity::scopes::Department’ has no member named ‘set_alternate_label’
get_ptr<Department>(dept)->set_alternate_label(from_gostring(label));
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘char* department_get_alternate_label(uintptr_t*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:52:46: error: ‘class unity::scopes::Department’ has no member named ‘alternate_label’
return strdup(get_ptr<Department>(dept)->alternate_label().c_str());
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘void department_set_has_subdepartments(uintptr_t*, int)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:64:32: error: ‘class unity::scopes::Department’ has no member named ‘set_has_subdepartments’
get_ptr<Department>(dept)->set_has_subdepartments(subdepartments);
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘int department_has_subdepartments(uintptr_t*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:68:56: error: ‘class unity::scopes::Department’ has no member named ‘has_subdepartments’
return static_cast<int>(get_ptr<Department>(dept)->has_subdepartments());
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘uintptr_t (* department_get_subdepartments(uintptr_t*, int*))[2]’:
src/launchpad.net/go-unityscopes/v2/department.cpp:78:55: error: no matching function for call to ‘init_ptr(SharedPtrData, unity::scopes::Department&)’
init_ptr<Department const>(ret_data[i++], item);
^
src/launchpad.net/go-unityscopes/v2/department.cpp:78:55: note: candidate is:
In file included from src/launchpad.net/go-unityscopes/v2/department.cpp:11:0:
src/launchpad.net/go-unityscopes/v2/smartptr_helper.h:19:34: note: template<class T> void gounityscopes::internal::init_ptr(uintptr_t*, std::shared_ptr<_Tp1>)
template<typename T> inline void init_ptr(SharedPtrData data, std::shared_ptr<T> v) {
^
src/launchpad.net/go-unityscopes/v2/smartptr_helper.h:19:34: note: template argument deduction/substitution failed:
src/launchpad.net/go-unityscopes/v2/department.cpp:78:55: note: cannot convert ‘item’ (type ‘unity::scopes::Department’) to type ‘std::shared_ptr<const unity::scopes::Department>’
init_ptr<Department const>(ret_data[i++], item);
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘void department_set_subdepartments(uintptr_t*, uintptr_t (**)[2], int)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:86:68: error: no matching function for call to ‘std::list<unity::scopes::Department>::push_back(std::shared_ptr<unity::scopes::Department>)’
api_depts.push_back(get_ptr<Department>(*subdepartments[i]));
^
src/launchpad.net/go-unityscopes/v2/department.cpp:86:68: note: candidates are:
In file included from /usr/include/c++/4.8/list:63:0,
from /usr/include/unity-scopes-0/unity/scopes/Department.h:24,
from src/launchpad.net/go-unityscopes/v2/department.cpp:4:
/usr/include/c++/4.8/bits/stl_list.h:1015:7: note: void std::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unity::scopes::Department; _Alloc = std::allocator<unity::scopes::Department>; std::list<_Tp, _Alloc>::value_type = unity::scopes::Department]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_list.h:1015:7: note: no known conversion for argument 1 from ‘std::shared_ptr<unity::scopes::Department>’ to ‘const value_type& {aka const unity::scopes::Department&}’
/usr/include/c++/4.8/bits/stl_list.h:1020:7: note: void std::list<_Tp, _Alloc>::push_back(std::list<_Tp, _Alloc>::value_type&&) [with _Tp = unity::scopes::Department; _Alloc = std::allocator<unity::scopes::Department>; std::list<_Tp, _Alloc>::value_type = unity::scopes::Department]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_list.h:1020:7: note: no known conversion for argument 1 from ‘std::shared_ptr<unity::scopes::Department>’ to ‘std::list<unity::scopes::Department>::value_type&& {aka unity::scopes::Department&&}’
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘char* department_get_alternate_label(uintptr_t*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:53:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/launchpad.net/go-unityscopes/v2/department.cpp: In function ‘int department_has_subdepartments(uintptr_t*)’:
src/launchpad.net/go-unityscopes/v2/department.cpp:69:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^