On Thu, 28 Aug 2014 13:15:54 GMT, David Monagle wrote:

So as a followup on my previous post. While a Nullable!bool seems to work just fine with Json, it doesn't work with BSON. When I try to serialise to Bson with a Nullable!bool in my struct I get the following:

/.dub/packages/vibe-d-0.7.21-alpha.4/source/vibe/data/bson.d(1386): Error: static assert  "Unsupported type: Nullable!bool"

Is there any way forward on this? I feel like I am so close to having it all but can't quite reach it!

Thank you!

The BSON serializer was too liberal with what it accepted as a native type and treated Nullable!T as int. Fixed now by 5556f33.