]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fixed compile errors due to some gcc does not have std::map::emplace
authorYueh-Hsuan Chiang <yhchiang@fb.com>
Mon, 18 May 2015 20:44:31 +0000 (13:44 -0700)
committerYueh-Hsuan Chiang <yhchiang@fb.com>
Mon, 18 May 2015 20:48:56 +0000 (13:48 -0700)
commit74f3832d85e932ed485a4f8d8c01b0adc6b3e502
tree3baf5495c9ca4c0c60e4125f08f325f07782eedc
parent0c8017dbae7fa668ceb5aa135f857b34ea6ca8f5
Fixed compile errors due to some gcc does not have std::map::emplace

Summary:
Fixed the following compile errors due to some gcc does not have std::map::emplace

util/thread_status_impl.cc: In static member function ‘static std::map<std::basic_string<char>, long unsigned int> rocksdb::ThreadStatus::InterpretOperationProperties(rocksdb::ThreadStatus::OperationType, const uint64_t*)’:
util/thread_status_impl.cc:88:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
util/thread_status_impl.cc:90:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
util/thread_status_impl.cc:94:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
util/thread_status_impl.cc:96:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
util/thread_status_impl.cc:98:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
util/thread_status_impl.cc:101:20: error: ‘class std::map<std::basic_string<char>, long unsigned int>’ has no member named ‘emplace’
make: *** [util/thread_status_impl.o] Error 1

Test Plan: make db_bench

Reviewers: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D38643
util/thread_status_impl.cc