With Visual Studio 2017, the above is fine but with GCC 7.5.0, I get a seg-fault on application exit. Looking at the stack trace, it looks like a problem in the CustomVertex destructor.
Is there some restriction as to what types we can use as member variable of Custom Vertex Properties ?