20 m_type = default_type<T>();
22 m_data = std::static_pointer_cast<
void>(std::make_shared<T> (
data));
29 return *(std::static_pointer_cast<T>(m_data));
33 void Element::type_check()
const
35 if (!check_convert<T>())
Declaration of a BSON element.
Element()
Default Constructor.
Definition: element.h:38
Enumeration to keep track of types for bson.
const T & data() const
data accessor
Definition: element.hpp:26
Definition: typeinfo.h:40