mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
828 stars 254 forks source link

Import functional header to support `std::function` in RawData.h #1603

Open muruganandham opened 8 months ago

muruganandham commented 8 months ago

Bitrise build was failed in M1 with the following error.

platform=iOS" | xcpretty): /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/include/RawData.h:51:64: error: no template named 'function' in namespace 'std' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/include/RawData.h:65:10: error: no template named 'function' in namespace 'std' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/include/RawData.h:51:64: error: no template named 'function' in namespace 'std' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/include/RawData.h:65:10: error: no template named 'function' in namespace 'std' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:78:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:102:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:125:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:151:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:177:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:215:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>' /Users/[REDACTED]/git/Pods/WhirlyGlobe/common/WhirlyGlobeLib/src/Texture.cpp:247:12: error: no viable conversion from returned value of type 'shared_ptr<WhirlyKit::RawDataWrapper>' to function return type 'shared_ptr<RawData>'

  So, Imported functional header to support std::function in RawData.h