Merge pull request #279 from thoys/fix/vs2019_v16_5_1

Fix VS2019 (Version 16.5.1) builds
This commit is contained in:
kasenvr 2020-04-09 01:08:54 -04:00 committed by GitHub
commit 71358c21bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -734,7 +734,7 @@ BatchPointer Deserializer::readBatch(const json& node) {
std::string batchName;
if (node.count(keys::name)) {
batchName = node[keys::name];
batchName = node.value(keys::name, "");
}
BatchPointer result = std::make_shared<Batch>(batchName);
auto& batch = *result;