mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Renamed CRC32.hpp to CRC. Better static_wrapper_cast
This commit is contained in:
parent
ca16919063
commit
2c97116d39
@ -22,7 +22,7 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#include "CRC32.hpp"
|
||||
#include "CRC.hpp"
|
||||
|
||||
namespace oatpp { namespace algorithm {
|
||||
|
@ -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 */
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user