I have a shared pointer structure setup as such:
Class.h
std::shared_ptr<exampleClass> mSharedPtr;
Class.cpp
// Why do either of these calls work before reset() has been called on the shared pointer?
// Populates data from xml file
mSharedPtr->initialize();
bool returnValue = mSharedPtr->getBool();
Sidenote: When inspecting this variable in the VisualStudio debugger, the shared_ptr is null, as in pointing to nothing. I'm really confused as to why this isn't causing a crash.