Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/core/stdcpp/typeinfo.d
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,15 @@ else version (CRuntime_Glibc)
{
void dtor1(); // consume destructor slot in vtbl[]
void dtor2(); // consume destructor slot in vtbl[]
final const(char)* name();
final bool before(const type_info) const;
final const(char)* name()() const nothrow {
return _name[0] == '*' ? _name + 1 : _name;
}
final bool before()(const type_info _arg) const {
import core.stdc.string : strcmp;
return (_name[0] == '*' && _arg._name[0] == '*')
? _name < _arg._name
: strcmp(_name, _arg._name) < 0;
}
//bool operator==(const type_info) const;
bool __is_pointer_p() const;
bool __is_function_p() const;
Expand Down