Commit 2e7ba80e authored by Jan Trmal's avatar Jan Trmal
Browse files

Fixing GCC 4.4 -std=gnu++0x compilation issues

parent c9757e06
...@@ -75,7 +75,8 @@ int main(int argc, char *argv[]) { ...@@ -75,7 +75,8 @@ int main(int argc, char *argv[]) {
std::random_shuffle(egs.begin(), egs.end()); std::random_shuffle(egs.begin(), egs.end());
} else { } else {
KALDI_ASSERT(buffer_size > 0); KALDI_ASSERT(buffer_size > 0);
egs.resize(buffer_size, std::pair<std::string, NnetExample*>("", NULL)); egs.resize(buffer_size,
std::pair<std::string, NnetExample*>("", static_cast<NnetExample *>(NULL)));
for (; !example_reader.Done(); example_reader.Next()) { for (; !example_reader.Done(); example_reader.Next()) {
int32 index = RandInt(0, buffer_size - 1); int32 index = RandInt(0, buffer_size - 1);
if (egs[index].second == NULL) { if (egs[index].second == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment