Boost for Windows Phone 8?

后端 未结 3 1584
南方客
南方客 2021-01-21 01:43

Are there any boost binaries available for Windows Phone 8? I\'m mostly looking for the basic stuff such as shared_ptr and threading. Note that threading needs both

相关标签:
3条回答
  • 2021-01-21 02:01

    As of Visual Studio 2013 Update 4, you can compile source that uses the TLS APIs since they are implemented as inlines that forward to the FLS APIs (which are Store-compliant). Obviously pre-compiled binaries won't work since they will try and bind to TLS directly.

    FYI the reason TLS is deprecated / banned is because there is the potential to leak memory if a thread terminates. If you use TLS APIs in Store apps they will have the same issue of potential memory leaks (the FlsCallback provided to FlsAlloc is null) so consider moving to TLS and providing a cleanup function.

    0 讨论(0)
  • 2021-01-21 02:04

    There is an official page on this dated of 18 Jul 2014, confirming that some of the libraries in Boost use APIs that aren’t available in Windows Store and Phone applications, and as so saying We’ve made improvements to the Boost build system to support targeting the Windows Runtime for Windows Store and Phone.

    0 讨论(0)
  • 2021-01-21 02:04

    I'm compiling against some static libraries that rely on boost so I don't think that's an issue at all.

    0 讨论(0)
提交回复
热议问题