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

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

parent c9757e06
......@@ -75,7 +75,8 @@ int main(int argc, char *argv[]) {
std::random_shuffle(egs.begin(), egs.end());
} else {
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()) {
int32 index = RandInt(0, buffer_size - 1);
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