Renamed CRC32.hpp to CRC. Better static_wrapper_cast

This commit is contained in:
lganzzzo 2018-08-07 02:15:08 +03:00
parent ca16919063
commit 2c97116d39
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
*
***************************************************************************/
#include "CRC32.hpp"
#include "CRC.hpp"
namespace oatpp { namespace algorithm {

View File

@ -22,8 +22,8 @@
*
***************************************************************************/
#ifndef oatpp_algorithm_CRC32_hpp
#define oatpp_algorithm_CRC32_hpp
#ifndef oatpp_algorithm_CRC_hpp
#define oatpp_algorithm_CRC_hpp
#include "oatpp/core/base/Environment.hpp"
@ -49,4 +49,4 @@ public:
}}
#endif /* oatpp_algorithm_CRC32_hpp */
#endif /* oatpp_algorithm_CRC_hpp */

View File

@ -140,7 +140,7 @@ public:
template<class T, class F>
inline PolymorphicWrapper<T> static_wrapper_cast(const F& from){
return PolymorphicWrapper<T>(std::static_pointer_cast<T>(from.getPtr()));
return PolymorphicWrapper<T>(std::static_pointer_cast<T>(from.getPtr()), from.valueType);
}
template <class T, class Clazz>