Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
0f47e751
Commit
0f47e751
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
fix compilation with boost 1.33.1
parent
52948683
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/base/src/boost_filesystem_helper.hh
+10
-0
10 additions, 0 deletions
modules/base/src/boost_filesystem_helper.hh
tools/molck/main.cc
+1
-1
1 addition, 1 deletion
tools/molck/main.cc
with
11 additions
and
1 deletion
modules/base/src/boost_filesystem_helper.hh
+
10
−
0
View file @
0f47e751
...
...
@@ -37,6 +37,16 @@ String BFPathToString(const boost::filesystem::path& path)
#endif
}
inline
String
BFPathStem
(
const
boost
::
filesystem
::
path
&
path
)
{
#if BOOST_FILESYSTEM_VERSION<103400
String
name
=
BFPathToString
(
path
);
size_t
n
=
name
.
rfind
(
'.'
);
return
name
.
substr
(
0
,
n
);
#else
return
path
.
stem
();
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
tools/molck/main.cc
+
1
−
1
View file @
0f47e751
...
...
@@ -370,7 +370,7 @@ int main(int argc, char *argv[])
}
if
(
write_to_file
)
{
fs
::
path
input_file_path
(
files
[
i
]);
fs
::
path
input_filename
=
input_file_path
.
stem
(
);
fs
::
path
input_filename
=
BFPathStem
(
input_file_path
);
String
input_filename_string
=
BFPathToString
(
input_filename
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment