Skip to content

COMP: win64 VS toolset 1437 template errors

Fix compiler error related to Links template class when using Visual Studio toolset version 1437. Throws the following template errors in smtk::common::Links :

smtk/common/Links.h(415): error C2244: 'smtk::common::Links<id_type,left_type,right_type,role_type,base_type>::contains': unable to match function definition to an existing declaration
smtk/common/Links.h(412): note: see declaration of 'smtk::common::Links<id_type,left_type,right_type,role_type,base_type>::contains'
smtk/common/Links.h(415): note: definition
smtk/common/Links.h(415): note: 'bool smtk::common::Links<id_type,left_type,right_type,role_type,base_type>::contains(const detail::LinkTraits<id_type,left_type,right_type,role_type,base_type,tag>::type &) const'
smtk/common/Links.h(415): note: existing declarations
smtk/common/Links.h(415): note: 'bool smtk::common::Links<id_type,left_type,right_type,role_type,base_type>::contains(const LinkTraits<tag>::type &) const'
smtk/common/Links.h(415): note: 'bool smtk::common::Links<id_type,left_type,right_type,role_type,base_type>::contains(const id_type &) const'
Edited by Shreeraj Jadhav

Merge request reports

Loading