diff --git a/include/cereal/archives/xml.hpp b/include/cereal/archives/xml.hpp index 18e8f45d..a86ab466 100644 --- a/include/cereal/archives/xml.hpp +++ b/include/cereal/archives/xml.hpp @@ -136,7 +136,7 @@ namespace cereal */ //! @{ - //! Sets the precision used for floaing point numbers + //! Sets the precision used for floating point numbers Options & precision( int value ){ itsPrecision = value; return * this; } //! Whether to indent each line of XML Options & indent( bool enable ){ itsIndent = enable; return *this; } diff --git a/include/cereal/cereal.hpp b/include/cereal/cereal.hpp index 764380bf..72038346 100644 --- a/include/cereal/cereal.hpp +++ b/include/cereal/cereal.hpp @@ -176,7 +176,7 @@ namespace cereal a serialization function. Classes with no data members are considered to be empty. Be warned that if this is enabled and you attempt to serialize an empty class with improperly formed serialize or load/save functions, no - static error will occur - the error will propogate silently and your + static error will occur - the error will propagate silently and your intended serialization functions may not be called. You can manually ensure that your classes that have custom serialization are correct by using the traits is_output_serializable and is_input_serializable @@ -391,7 +391,7 @@ namespace cereal point to the same data. @internal - @param sharedPointer The shared pointer itself (the adress is taked via get()). + @param sharedPointer The shared pointer itself (the address is taken via get()). The archive takes a copy to prevent the memory location to be freed as long as the address is used as id. This is needed to prevent CVE-2020-11105. @return A key that uniquely identifies the pointer */ @@ -820,7 +820,7 @@ namespace cereal @internal @param id The unique id that was serialized for the polymorphic type - @return The string identifier for the tyep */ + @return The string identifier for the type */ inline std::string getPolymorphicName(std::uint32_t const id) { auto name = itsPolymorphicTypeMap.find( id ); @@ -837,7 +837,7 @@ namespace cereal @internal @param id The unique identifier for the polymorphic type - @param name The name associated with the tyep */ + @param name The name associated with the type */ inline void registerPolymorphicName(std::uint32_t const id, std::string const & name) { std::uint32_t const stripped_id = id & ~detail::msb_32bit; diff --git a/include/cereal/details/polymorphic_impl.hpp b/include/cereal/details/polymorphic_impl.hpp index deb3440e..b1b9b4d0 100644 --- a/include/cereal/details/polymorphic_impl.hpp +++ b/include/cereal/details/polymorphic_impl.hpp @@ -64,7 +64,7 @@ #define CEREAL_BIND_TO_ARCHIVES_UNUSED_FUNCTION static void unused() { (void)b; } #endif -//! Binds a polymorhic type to all registered archives +//! Binds a polymorphic type to all registered archives /*! This binds a polymorphic type to all compatible registered archives that have been registered with CEREAL_REGISTER_ARCHIVE. This must be called after all archives are registered (usually after the archives themselves @@ -277,8 +277,8 @@ namespace cereal // Find all chainable unregistered relations /* The strategy here is to process only the nodes in the class hierarchy graph that have been - affected by the new insertion. The aglorithm iteratively processes a node an ensures that it - is updated with all new shortest length paths. It then rocesses the parents of the active node, + affected by the new insertion. The algorithm iteratively processes a node an ensures that it + is updated with all new shortest length paths. It then processes the parents of the active node, with the knowledge that all children have already been processed. Note that for the following, we'll use the nomenclature of parent and child to not confuse with @@ -335,7 +335,7 @@ namespace cereal auto parentChildPath = checkRelation( parent, child ); // Search all paths from the child to its own children (finalChild), - // looking for a shorter parth from parent to finalChild + // looking for a shorter path from parent to finalChild for( auto const & finalChildPair : baseMap[child] ) { const auto finalChild = finalChildPair.first; @@ -812,7 +812,7 @@ namespace cereal Since the compiler needs to check all possible overloads, the other overloads created via CEREAL_REGISTER_ARCHIVE, which will have - lower precedence due to requring a conversion from int to (Archive*), + lower precedence due to requiring a conversion from int to (Archive*), will cause their return types to be instantiated through the static object mechanisms even though they are never called. diff --git a/sandbox/sandbox.cpp b/sandbox/sandbox.cpp index 87b14186..d2d483e9 100644 --- a/sandbox/sandbox.cpp +++ b/sandbox/sandbox.cpp @@ -714,7 +714,7 @@ int main() std::ifstream ss("xml_ordering.out"); cereal::XMLInputArchive ar(ss); - // Output prodered out of order, try to load in order 1 2 3 4 + // Output out of order, try to load in order 1 2 3 4 double one; double two; double three; diff --git a/sandbox/sandbox_vs.cpp b/sandbox/sandbox_vs.cpp index 90994b77..e1e2c137 100644 --- a/sandbox/sandbox_vs.cpp +++ b/sandbox/sandbox_vs.cpp @@ -77,7 +77,7 @@ CEREAL_SETUP_ARCHIVE_TRAITS(Archive, Archive) struct Test { template - void serialzize( Archive & ) + void serialize( Archive & ) { std::cout << "hey there" << std::endl; }