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
520b7c30
Commit
520b7c30
authored
Nov 29, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made dlib::file implicitly convertible to std::string.
parent
454c2ea1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
dir_nav_kernel_1.h
dlib/dir_nav/dir_nav_kernel_1.h
+3
-0
dir_nav_kernel_2.h
dlib/dir_nav/dir_nav_kernel_2.h
+3
-0
dir_nav_kernel_abstract.h
dlib/dir_nav/dir_nav_kernel_abstract.h
+8
-0
No files found.
dlib/dir_nav/dir_nav_kernel_1.h
View file @
520b7c30
...
...
@@ -101,6 +101,9 @@ namespace dlib
inline
const
std
::
string
&
full_name
(
)
const
{
return
state
.
full_name
;
}
operator
std
::
string
(
)
const
{
return
full_name
();
}
inline
uint64
size
(
)
const
{
return
state
.
file_size
;
}
...
...
dlib/dir_nav/dir_nav_kernel_2.h
View file @
520b7c30
...
...
@@ -109,6 +109,9 @@ namespace dlib
inline
uint64
size
(
)
const
{
return
state
.
file_size
;
}
operator
std
::
string
(
)
const
{
return
full_name
();
}
bool
operator
==
(
const
file
&
rhs
)
const
;
...
...
dlib/dir_nav/dir_nav_kernel_abstract.h
View file @
520b7c30
...
...
@@ -139,6 +139,14 @@ namespace dlib
- returns the size of this file in bytes.
!*/
operator
std
::
string
(
)
const
;
/*!
ensures
- returns full_name()
(i.e. provides an implicit conversion to string from dlib::file)
!*/
file
&
operator
=
(
const
file
&
rhs
);
...
...
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