Browse Source

删除一些不必要的代码,减少警告

tags/2.9.10
tearshark 4 years ago
parent
commit
4b7857e792
3 changed files with 1 additions and 34 deletions
  1. 0
    18
      librf/src/future.h
  2. 0
    15
      librf/src/generator.h
  3. 1
    1
      vs_proj/librf.vcxproj

+ 0
- 18
librf/src/future.h View File

@@ -46,21 +46,3 @@ namespace resumef
}
};
}
#ifndef DOXYGEN_SKIP_PROPERTY
namespace std {
namespace experimental {
/*If the coroutine is defined as task<float> foo(std::string x, bool flag);,
then its Promise type is std::coroutine_traits<task<float>, std::string, bool>::promise_type.
If the coroutine is a non-static member function, such as task<void> my_class::method1(int x) const;,
its Promise type is std::coroutine_traits<task<void>, const my_class&, int>::promise_type.
*/
template <typename _Ty, typename... Args>
struct coroutine_traits<resumef::future_t<_Ty>, Args...>
{
typedef resumef::promise_t<_Ty> promise_type;
};
}
} // namespace std::experimental
#endif //DOXYGEN_SKIP_PROPERTY

+ 0
- 15
librf/src/generator.h View File

@@ -321,18 +321,3 @@ namespace resumef
#pragma pop_macro("new")
#pragma pack(pop)
#ifndef DOXYGEN_SKIP_PROPERTY
namespace std {
namespace experimental {
template <typename _Ty, typename _Alloc, typename... Args>
struct coroutine_traits<resumef::generator_t<_Ty, _Alloc>, Args...>
{
typedef typename resumef::generator_t<_Ty, _Alloc>::promise_type promise_type;
};
}
} // namespace std::experimental
#endif //DOXYGEN_SKIP_PROPERTY

+ 1
- 1
vs_proj/librf.vcxproj View File

@@ -154,7 +154,7 @@
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;_CONSOLE;ASIO_STANDALONE;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;RESUMEF_ENABLE_MULT_SCHEDULER=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;..\modern_cb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/await</AdditionalOptions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<StringPooling>true</StringPooling>
<LanguageStandard>stdcpplatest</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>

Loading…
Cancel
Save