Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8234080b
Commit
8234080b
authored
Sep 23, 2018
by
Davis King
Browse files
merged
parents
ebbc9e89
65a73ea7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
dlib/member_function_pointer/member_function_pointer_kernel_1.h
...ember_function_pointer/member_function_pointer_kernel_1.h
+12
-1
No files found.
dlib/member_function_pointer/member_function_pointer_kernel_1.h
View file @
8234080b
...
@@ -116,8 +116,19 @@ namespace dlib
...
@@ -116,8 +116,19 @@ namespace dlib
}
}
};
};
// MSVC with the /vms option, we get C2287 since the dummy class requires virtual
// inheritance. Adding the __virtual_inheritance specifier explicitly fixes the issue,
// but then Clang-CL no longer accepts it.
#if defined(_MSC_VER) && !defined(__clang__)
#define DLIB_MSVC_INHERITANCE_VIRTUAL __virtual_inheritance
#else
#define DLIB_MSVC_INHERITANCE_VIRTUAL
#endif
struct
dummy_base
{
virtual
void
nonnull
()
{};
virtual
~
dummy_base
(){};
int
a
;
};
struct
dummy_base
{
virtual
void
nonnull
()
{};
virtual
~
dummy_base
(){};
int
a
;
};
struct
dummy
:
virtual
public
dummy_base
{
void
nonnull
()
{};
};
struct
DLIB_MSVC_INHERITANCE_VIRTUAL
dummy
:
virtual
public
dummy_base
{
void
nonnull
()
{};
};
#undef DLIB_MSVC_INHERITANCE_VIRTUAL
typedef
mp_impl_T
<
mp_null
<
dummy
>
>
mp_null_impl
;
typedef
mp_impl_T
<
mp_null
<
dummy
>
>
mp_null_impl
;
public:
public:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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