Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
8234080b
Commit
8234080b
authored
Sep 23, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
ebbc9e89
65a73ea7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
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
}
};
// 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
:
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
;
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