you might try moving this to Snapshot.cpp before it includes Snapshot.h