Browse Source

fix toJSON usage for new and old compilers

bio2
John Colvin 6 years ago
parent
commit
468c01931d
  1. 5
      bio/sam/header.d

5
bio/sam/header.d

@ -707,7 +707,10 @@ class SamHeader {
JSONValue json;
json.object = result;
sink.write(toJSON(json));
static if (__VERSION__ < 2072)
sink.write(toJSON(&json));
else
sink.write(toJSON(json));
}
/// Packs message in the following format:

Loading…
Cancel
Save