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
0eb9fb52
Commit
0eb9fb52
authored
Nov 18, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified example
parent
43a028bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
member_function_pointer_ex.cpp
examples/member_function_pointer_ex.cpp
+2
-2
No files found.
examples/member_function_pointer_ex.cpp
View file @
0eb9fb52
...
@@ -39,10 +39,10 @@ public:
...
@@ -39,10 +39,10 @@ public:
int
main
()
int
main
()
{
{
// create a pointer that can point to member functions that take no arguments
// create a pointer that can point to member functions that take no arguments
member_function_pointer
<>
::
kernel_1a_c
mfp1
;
member_function_pointer
<>
mfp1
;
// create a pointer that can point to member functions that take a single int argument
// create a pointer that can point to member functions that take a single int argument
member_function_pointer
<
int
>
::
kernel_1a_c
mfp2
;
member_function_pointer
<
int
>
mfp2
;
example_object
obj
;
example_object
obj
;
...
...
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