Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
8a9b23eb
Commit
8a9b23eb
authored
Jan 09, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed uniform type name w/ clang & libstdc++
parent
ecb9ab91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/uniform_type_info_map.cpp
src/uniform_type_info_map.cpp
+2
-3
No files found.
src/uniform_type_info_map.cpp
View file @
8a9b23eb
...
@@ -117,11 +117,10 @@ const char* mapped_name_by_decorated_name(const char* cstr) {
...
@@ -117,11 +117,10 @@ const char* mapped_name_by_decorated_name(const char* cstr) {
auto
e
=
end
(
mapped_type_names
);
auto
e
=
end
(
mapped_type_names
);
auto
i
=
lower_bound
(
begin
(
mapped_type_names
),
e
,
cstr
,
cmp
);
auto
i
=
lower_bound
(
begin
(
mapped_type_names
),
e
,
cstr
,
cmp
);
if
(
i
!=
e
&&
strcmp
(
cstr
,
(
*
i
)[
0
])
==
0
)
return
(
*
i
)[
1
];
if
(
i
!=
e
&&
strcmp
(
cstr
,
(
*
i
)[
0
])
==
0
)
return
(
*
i
)[
1
];
# if defined(__GNUC__) && !defined(__clang__)
// for some reason, GCC returns "std::string" as RTTI type name
// for some reason, GCC returns "std::string" as RTTI type name
// instead of std::basic_string<...>
// instead of std::basic_string<...>, this also affects clang-compiled
// code when used with GCC's libstdc++
if
(
strcmp
(
"std::string"
,
cstr
)
==
0
)
return
mapped_name
<
std
::
string
>
();
if
(
strcmp
(
"std::string"
,
cstr
)
==
0
)
return
mapped_name
<
std
::
string
>
();
# endif
return
cstr
;
return
cstr
;
}
}
...
...
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