Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
SuperElastix
Commits
c1a4a201
Commit
c1a4a201
authored
Feb 03, 2016
by
Floris Berendsen
Browse files
BUG: added std::sting, since equality check doesn't work for 2 char*
parent
57374453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Core/ComponentInterface/include/Interfaces.hxx
View file @
c1a4a201
...
...
@@ -48,7 +48,7 @@ template<typename FirstInterface, typename ... RestInterfaces>
ComponentBase
::
interfaceStatus
Accepting
<
FirstInterface
,
RestInterfaces
...
>::
ConnectFromImpl
(
const
char
*
interfacename
,
ComponentBase
*
other
)
{
// does our component have an accepting interface called interfacename?
if
(
InterfaceName
<
InterfaceAcceptor
<
FirstInterface
>>::
Get
()
==
interfacename
)
if
(
InterfaceName
<
InterfaceAcceptor
<
FirstInterface
>>::
Get
()
==
std
::
string
(
interfacename
)
)
{
// cast always succeeds since we know via the template arguments of the component which InterfaceAcceptors its base classes are.
InterfaceAcceptor
<
FirstInterface
>*
acceptIF
=
this
;
...
...
@@ -82,7 +82,7 @@ int Accepting<FirstInterface, RestInterfaces... >::ConnectFromImpl(ComponentBase
template
<
typename
FirstInterface
,
typename
...
RestInterfaces
>
bool
Accepting
<
FirstInterface
,
RestInterfaces
...
>::
HasInterface
(
const
char
*
interfacename
)
{
if
(
InterfaceName
<
InterfaceAcceptor
<
FirstInterface
>>::
Get
()
==
interfacename
)
if
(
InterfaceName
<
InterfaceAcceptor
<
FirstInterface
>>::
Get
()
==
std
::
string
(
interfacename
)
)
{
return
true
;
}
...
...
@@ -92,7 +92,7 @@ bool Accepting<FirstInterface, RestInterfaces... >::HasInterface(const char* int
template
<
typename
FirstInterface
,
typename
...
RestInterfaces
>
bool
Providing
<
FirstInterface
,
RestInterfaces
...
>::
HasInterface
(
const
char
*
interfacename
)
{
if
(
InterfaceName
<
FirstInterface
>::
Get
()
==
interfacename
)
if
(
InterfaceName
<
FirstInterface
>::
Get
()
==
std
::
string
(
interfacename
)
)
{
return
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment