Skip to content

Commit

Permalink
Regression Fix: RTP table mapping japanese <-> other didn't work anym…
Browse files Browse the repository at this point in the history
…ore because const char* doesn't work like std::string
  • Loading branch information
Ghabry committed Dec 17, 2018
1 parent 5693e24 commit 219adb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/rtp_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@

#include <map>
#include <string>
#include <cstring>

namespace RTP {
using rtp_table_type = std::map<const char*, std::map<const char*, const char*>>;
struct rtp_table_cmp {
bool operator()(char const* a, char const* b) const {
return std::strcmp(a, b) < 0;
}
};

using rtp_table_type = std::map<const char*, std::map<const char*, const char*, rtp_table_cmp>, rtp_table_cmp>;

void Init();

Expand Down

0 comments on commit 219adb2

Please sign in to comment.