@Peter I'm trying to use new search api, but either I'm doing something wrong or there are missing definitions in SDK.
The following code fails to compile (on `as_list_of` line)
const auto pSearchFilter = search_filter_manager_v3::get()->create( query.c_str() );
const auto pSearchIndex = search_index_manager::get()->get_library_index();
const auto pArray = pSearchIndex->search( pSearchFilter, nullptr, 0, fb2k::mainAborter() );
// Per docs: "Safe to use arr->as_list_of<metadb_handle>() to get a pfc::list_base_const_t<metadb_handle_ptr>"
auto handles = pArray->as_list_of<metadb_handle>();
Error:
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,22): error C2259: 'pfc::list_base_const_t<metadb_handle_ptr>': cannot instantiate abstract class
1>X:\git\foo_spider_monkey_panel\submodules\foobar2000\SDK\metadb_handle.h(189,14): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>'
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,22): message : due to following members:
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,22): message : 't_size pfc::list_base_const_t<metadb_handle_ptr>::get_count(void) const': is abstract
1>X:\git\foo_spider_monkey_panel\submodules\pfc\list.h(63,17): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>::get_count'
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,22): message : 'void pfc::list_base_const_t<metadb_handle_ptr>::get_item_ex(T &,t_size) const': is abstract
1> with
1> [
1> T=metadb_handle_ptr
1> ]
1>X:\git\foo_spider_monkey_panel\submodules\pfc\list.h(64,15): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>::get_item_ex'
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,22): error C2248: 'pfc::list_base_const_t<metadb_handle_ptr>::list_base_const_t': cannot access protected member declared in class 'pfc::list_base_const_t<metadb_handle_ptr>'
1>X:\git\foo_spider_monkey_panel\submodules\pfc\list.h(142,2): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>::list_base_const_t'
1>X:\git\foo_spider_monkey_panel\submodules\foobar2000\SDK\metadb_handle.h(189,14): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>'
1>X:\git\foo_spider_monkey_panel\foo_spider_monkey_panel\js_backend\objects\fb2k\library.cpp(158,59): error C2248: 'pfc::list_base_const_t<metadb_handle_ptr>::~list_base_const_t': cannot access protected member declared in class 'pfc::list_base_const_t<metadb_handle_ptr>'
1>X:\git\foo_spider_monkey_panel\submodules\pfc\list.h(140,3): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>::~list_base_const_t'
1>X:\git\foo_spider_monkey_panel\submodules\foobar2000\SDK\metadb_handle.h(189,14): message : see declaration of 'pfc::list_base_const_t<metadb_handle_ptr>'