{"id":67,"date":"2018-01-26T19:16:41","date_gmt":"2018-01-26T11:16:41","guid":{"rendered":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=67"},"modified":"2018-12-05T00:14:42","modified_gmt":"2018-12-04T16:14:42","slug":"%e8%ae%b0%e4%b8%80%e4%ba%9b%e8%87%aa%e5%b7%b1%e9%81%87%e5%88%b0%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=67","title":{"rendered":"\u8bb0\u4e00\u4e9b\u81ea\u5df1\u9047\u5230\u7684\u5751"},"content":{"rendered":"<p>\u7c7b\u5185\u5305\u542b\u975e\u9759\u6001\u7684\u53f3\u503c\u5f15\u7528\u6210\u5458\u65f6\u9690\u5f0f\u751f\u6210\u7684\u590d\u5236\u6784\u9020\u51fd\u6570\u662fdelete\u7684\uff0c\u4f46\u662f\u79fb\u52a8\u6784\u9020\u6b63\u5e38\uff0c\u56e0\u6b64\u5305\u542b\u53f3\u503c\u5f15\u7528\u7684tuple\u53ea\u80fd\u79fb\u52a8\uff0cmsvc\u7684bind\u5b9e\u73b0\u5e94\u8be5\u662f\u9519\u8bef\u7684<\/p>\n<p>\u5f53\u4e00\u4e2a\u7c7b\u7ee7\u627f\u7684\u7c7b\u6a21\u677f\u5904\u4e8e\u5176\u4ed6\u547d\u540d\u7a7a\u95f4\u7684\u65f6\u5019\u6ce8\u5165\u7684\u540d\u79f0\u4e0d\u4f1a\u5e26\u6709\u547d\u540d\u7a7a\u95f4\u9650\u5b9a\u548c\u6a21\u677f\u53c2\u6570\uff0c\u56e0\u6b64\u5982\u679c\u7ee7\u627f\u4e86\u591a\u4e2a\u5177\u6709\u4e0d\u540c\u53c2\u6570\u7684\u7c7b\u6a21\u677f\u5e76\u9700\u8981\u8c03\u7528\u7279\u5b9a\u7c7b\u6a21\u677f\u7684\u6210\u5458\u51fd\u6570\u7684\u8bdd\u9700\u8981\u5e26\u4e0a\u5d4c\u5957\u7c7b\u578b\u8bf4\u660e\u7b26\u548c\u6a21\u677f\u53c2\u6570<\/p>\n<p>\u5f53\u7c7bT\u7684\u590d\u5236\uff08\u6216\u79fb\u52a8\u7b49\uff0c\u6548\u679c\u76f8\u4f3c\uff09\u6784\u9020\u51fd\u6570\u58f0\u660e\u4e3adelete\u65f6\uff0cstd::is_convertible_v&lt;T, T&gt;\u5c06\u4f1a\u662ffalse\uff0c\u5728\u5c1d\u8bd5\u7528\u7c7b\u578bU\u6784\u9020T\u8fdb\u884c\u63a8\u65ad\u65f6\u4ec5\u7528std::is_convertible_v&lt;U, T&gt;\u4e0d\u80fd\u63a8\u65ad\u51fa\u5c1d\u8bd5\u8c03\u7528\u7684\u4e0d\u662f\u590d\u5236\u6784\u9020\u51fd\u6570\uff0c\u800c\u56e0\u6b64\u5c06\u53ef\u80fd\u4f1a\u56e0\u4e3a\u5339\u914d\u5230\u590d\u5236\u6784\u9020\u51fd\u6570\u800c\u7f16\u8bd1\u5931\u8d25<\/p>\n<p>\u7c7b\u5185\u5305\u542b\u667a\u80fd\u6307\u9488\u65f6\uff08\u6216\u81ea\u52a8\u751f\u6210\u7684\u4ee3\u7801\u4f1a\u8981\u6c42\u6307\u5b9a\u7684\u7c7b\u578b\u5fc5\u987b\u5b8c\u6574\u4e4b\u65f6\uff09\uff0c\u82e5\u5176\u6307\u5411\u7684\u7c7b\u578b\u4f7f\u7528\u524d\u5411\u58f0\u660e\u7b49\u5f15\u5165\uff08\u56e0\u800c\u4e0d\u5b8c\u6574\uff09\uff0c\u4e14\u5305\u542b\u5b83\u7684\u7c7b\u6ca1\u6709\u7528\u6237\u5b9a\u4e49\u7684\u6790\u6784\u51fd\u6570\uff08\u6216\u7c7b\u4f3c\u7684\u53ef\u80fd\u7531\u7f16\u8bd1\u5668\u81ea\u52a8\u5b9e\u73b0\u7684\u51fd\u6570\uff09\u4e4b\u65f6\uff0c\u4ec5\u5305\u542b\u8be5\u7c7b\u7684\u5934\u6587\u4ef6\u5c06\u4f1a\u5bfc\u81f4\u8981\u6c42\u7c7b\u578b\u5b8c\u6574\u7684\u9519\u8bef\uff0c\u6b64\u65f6\u624b\u52a8\u5b9a\u4e49\u4e00\u4e2a\u6790\u6784\u51fd\u6570\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6b64\u6790\u6784\u51fd\u6570\u53ef\u4ee5\u4ec0\u4e48\u90fd\u4e0d\u505a\uff08= default \u4e5f\u53ef\u4ee5\uff09\uff0c\u4f46\u9700\u8981\u5728\u5b9e\u73b0\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5728\u5934\u6587\u4ef6\u5b9a\u4e49\u4e0d\u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u82e5\u5fc5\u987b\u5728\u5934\u6587\u4ef6\u5b9a\u4e49\uff08\u4f8b\u5982\u8be5\u7c7b\u662f\u7c7b\u6a21\u677f\uff09\u5219\u65e0\u6cd5\u5b8c\u7f8e\u5730\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898<\/p>\n<p>\u7c7b\u6a21\u677f\u663e\u5f0f\u5b9e\u4f8b\u5316\u7684\u65f6\u5019\u4f1a\u540c\u65f6\u5728\u5f53\u524d\u7ffb\u8bd1\u5355\u5143\u663e\u5f0f\u5b9e\u4f8b\u5316constexpr\u51fd\u6570\uff0c\u56e0\u6b64\u5176\u4ed6\u7ffb\u8bd1\u5355\u5143\u4f1a\u627e\u4e0d\u5230\u8fd9\u4e2aconstexpr\u51fd\u6570\uff0c\u56e0\u6b64\u4f1a\u94fe\u63a5\u5931\u8d25<\/p>\n<p>\u4f7f\u7528\u667a\u80fd\u6307\u9488\u5b9e\u73b0\u94fe\u8868\u65f6\u8981\u6ce8\u610f\u6790\u6784\u7684\u65f6\u5019\u5fc5\u987b\u624b\u52a8\u4e00\u4e2a\u4e2a\u91ca\u653e\u8282\u70b9\uff0c\u5426\u5219\u53ef\u80fd\u56e0\u4e3a\u8282\u70b9\u592a\u591a\u800c\u5728\u6790\u6784\u65f6\u7206\u6808<\/p>\n<p>\u5e38\u89c1\u4e8e\u6784\u9020\u51fd\u6570\u7684\u95ee\u9898\uff0c\u82e5\u4e00\u4e2a\u6784\u9020\u51fd\u6570\u6a21\u677f\u63a5\u53d7T&amp;&amp;\u4f5c\u4e3a\u53c2\u6570\uff08\u6216\u8005T&amp;&amp;&#8230;\u8fd9\u6837\u7684\uff09\uff0c\u5219\u53ef\u80fd\u4f1a\u4f18\u5148\u4e8e\u590d\u5236\u548c\u79fb\u52a8\u6784\u9020\u51fd\u6570\u88ab\u5339\u914d\uff0c\u5982\u4e0b\u4f8b\uff1a<\/p>\n<pre class=\"lang:c++ decode:true\">struct Foo\n{\n    Foo(Foo const&amp;);\n    Foo(Foo &amp;&amp;);\n\n    template &lt;typename T&gt;\n    Foo(T&amp;&amp;);\n};\n\nFoo a;\nFoo b{ a }; \/\/ \u5339\u914d\u5230 Foo(T&amp;&amp;) \u800c\u4e0d\u662f Foo(Foo const&amp;)\n            \/\/ \u56e0\u4e3a a \u8fd9\u91cc\u88ab\u63a8\u65ad\u4e3a Foo&amp;\uff0c\u5230 Foo const&amp; \u9700\u8981\u989d\u5916\u7684\u8f6c\u6362\uff0c\u56e0\u6b64 Foo(T&amp;&amp;) \u80dc\u51fa\n<\/pre>\n<p>Linux\u9ed8\u8ba4\u641c\u7d22\u52a8\u6001\u5e93\u662f\u4e0d\u4f1a\u641c\u7d22\u5f53\u524d\u76ee\u5f55\u7684\uff0c\u901a\u8fc7\u4f7f\u7528LD_LIBRARY_PATH\u53ef\u4ee5\u5f3a\u5236\u641c\u7d22\u5f53\u524d\u76ee\u5f55\uff0c\u4f46\u662f\u603b\u89c9\u5f97\u8fd9\u4e2a\u65b9\u6cd5\u5f88\u810f\u3002\u3002\u3002\u5e0c\u671b\u6709\u66f4\u5e72\u51c0\u7684\u65b9\u6cd5<\/p>\n<p>Unity\u4eceAssets\u91cc\u52a0\u8f7d\u4e8c\u8fdb\u5236\u6570\u636e\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/TextAsset.html\">TextAsset<\/a>\u6765\u52a0\u8f7d\uff0c\u9700\u8981\u5c06\u540e\u7f00\u540d\u6539\u4e3a.txt\uff0c\u52a0\u8f7d\u540e\u4f7f\u7528<a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/TextAsset-bytes.html\">bytes\u5c5e\u6027<\/a>\u83b7\u5f97\u6570\u636e<\/p>\n<p>\u8c03\u8bd5\u90e8\u7f72\u5230Android\u7684Unity\u5de5\u7a0b\u9700\u8981\u5728Build Settings\u91cc\u542f\u7528Development Build\u548cScript Debugging\uff0c\u7136\u540e\u5728VS\u76f4\u63a5\u9644\u52a0\u5230Unity\u8c03\u8bd5\u5668\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>Unity\u8c03\u8bd5\u63d2\u4ef6\u7684\u65f6\u5019\u52a0\u8f7d\u4e0d\u4e86\u7b26\u53f7\uff0c\u56e0\u4e3a\u9700\u8981mdb\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528mono\u7684pdb2mdb\u6765\u751f\u6210mdb\u6587\u4ef6\uff0c\u8fd9\u91cc\u67092\u4e2a\u5751\uff0c\u7b2c\u4e00\u4e2a\u662funity\u5b98\u65b9\u8bf4\u660e\u662f\u4f20\u9012pdb\u6587\u4ef6\u4e3a\u53c2\u6570\uff0c\u4e8b\u5b9e\u4e0a\u4f20\u9012pdb\u6587\u4ef6\u505a\u53c2\u6570\u662f\u9519\u8bef\u7684\uff0c\u4f1a\u62a5\u544a\u4e0d\u662f\u5408\u6cd5\u7684pe\u6587\u4ef6\uff0c\u5e94\u8be5\u4f20\u9012\u7684\u662fdll\u6587\u4ef6\uff0c\u7b2c\u4e8c\u4e2a\u662funity\u9644\u5e26\u7684pdb2mdb\u5904\u7406\u7eafpdb\u7684\u8c03\u8bd5\u4fe1\u606f\u4f1a\u62a5\u9519\uff1aMicrosoft.Cci.Pdb.PdbDebugException: Unknown custom metadata item kind: 6\uff0c\u800c\u5176\u4ed6\u5f62\u5f0f\u7684\u8c03\u8bd5\u4fe1\u606f\u5219\u5e72\u8106OutOfMemoryException\u4e86\uff0c\u4f7f\u7528<a href=\"https:\/\/gist.github.com\/jbevain\/ba23149da8369e4a966f\">https:\/\/gist.github.com\/jbevain\/ba23149da8369e4a966f<\/a> \u8fd9\u91cc\u63d0\u4f9b\u7684pdb2mdb\u6587\u4ef6\u624d\u80fd\u6b63\u786e\u5bf9\u7eafpdb\u7684\u8c03\u8bd5\u4fe1\u606f\u751f\u6210mdb\u6587\u4ef6\uff08\u800c\u5176\u4ed6\u7684\u8c03\u8bd5\u4fe1\u606f\u4ecd\u7136OutOfMemoryException\uff0c\u65e0\u89e3\uff09<\/p>\n<p>\u5b89\u88c5\u5bf9\u5e941809\u7684WDK\u4e4b\u540e\uff0cVisual Studio 2017\u5f00\u59cb\u51fa\u73b0\u9ed8\u8ba4\u5f00\u542fSpectre\u7f13\u89e3\u7684\u95ee\u9898\uff0c\u5982\u679c\u672a\u5b89\u88c5\u5bf9\u5e94\u7684\u8fd0\u884c\u5e93\u5219\u4f1a\u51fa\u73b0\u8be1\u5f02\u7684\u95ee\u9898\u5982\u65e0\u6cd5\u8c03\u8bd5\u53ca\u8c1c\u4e4b\u7f16\u8bd1\u5931\u8d25\uff08\u7f3a\u5c11\u5404\u79cd\u8fd0\u884c\u5e93\uff09\u7b49\uff0c\u540e\u6765\u67e5\u5230\u4e86<a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/348985\/installing-wdk-1809-enabled-spectre-mitigation-fla.html\">\u8fd9\u7bc7\u5e16\u5b50<\/a>\u624d\u77e5\u9053\u88ab\u5751\u4e86\uff0c\u901a\u8fc7grep\u67e5\u627e\u53d1\u73b0WDK\u5b89\u88c5\u76ee\u5f55\\build\\WindowsDriver.OSTargets.props\u4e2d\u7684<\/p>\n<pre class=\"\">&lt;PropertyGroup&gt;\n  &lt;SpectreMitigation Condition=\"'$(SpectreMitigation)' == ''\"&gt;Spectre&lt;\/SpectreMitigation&gt;\n&lt;\/PropertyGroup&gt;<\/pre>\n<p>\u6bb5\u843d\u5bfc\u81f4\u4e86\u9ed8\u8ba4\u5f00\u542fSpectre\u7f13\u89e3\uff0c\u4fee\u6539\u4e3afalse\u4ee5\u540e\u53d1\u73b0\u95ee\u9898\u4f9d\u65e7\uff0c\u7ee7\u7eed\u67e5\u627e\u53d1\u73b0Visual Studio\u5b89\u88c5\u76ee\u5f55\\2017\\Community\\Common7\\IDE\\VC\\VCTargets\\Platforms&#40;\u5e73\u53f0\u540d)\\ImportBefore\\Default\\Microsoft.Cpp.WDK.props\u4e5f\u5305\u542b\u4e86\u76f8\u540c\u7684\u6bb5\u843d\uff0c\u540c\u6837\u4fee\u6539\u4e4b\uff0c\u95ee\u9898\u89e3\u51b3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7c7b\u5185\u5305\u542b\u975e\u9759\u6001\u7684\u53f3\u503c\u5f15\u7528\u6210\u5458\u65f6\u9690\u5f0f\u751f\u6210\u7684\u590d\u5236\u6784\u9020\u51fd\u6570\u662fdelete\u7684\uff0c\u4f46\u662f\u79fb\u52a8\u6784\u9020\u6b63\u5e38\uff0c\u56e0\u6b64\u5305\u542b\u53f3\u503c\u5f15\u7528\u7684tu &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=67\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u8bb0\u4e00\u4e9b\u81ea\u5df1\u9047\u5230\u7684\u5751\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-6"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9CzIN-15","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":134,"url":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=134","url_meta":{"origin":67,"position":0},"title":"\u4eceC++\u8c08\u591a\u6001","author":"Chino","date":"2018\u5e749\u670814\u65e5","format":false,"excerpt":"\u591a\u6001\uff08Polymorphism\uff09\u6307\u7684\u662f\u4e00\u79cd\u76f8\u540c\u7684\u5f62\u5f0f\uff08\u540d\u79f0\u548c\u64cd\u4f5c\u7b49\uff09\u8868\u73b0\u51fa\u4e0d\u540c\u884c\u4e3a\u7684\u6982\u5ff5\uff0c\u591a\u6001\u7684\u6982\u5ff5\u2026","rel":"","context":"\u5728\u201c\u7f16\u7a0b\u5b66\u4e60\u201d\u4e2d","block_context":{"text":"\u7f16\u7a0b\u5b66\u4e60","link":"https:\/\/syaro.hotococoa.moe\/wordpress\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":253,"url":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=253","url_meta":{"origin":67,"position":1},"title":"LLVM\u5faa\u73af\u672f\u8bed\uff08\u548c\u89c4\u8303\u5f62\u5f0f\uff09","author":"Chino","date":"2020\u5e744\u670824\u65e5","format":false,"excerpt":"\u539f\u6587\u94fe\u63a5\uff1aLLVM Loop Terminology (and Canonical Forms) \u2014\u2026","rel":"","context":"\u5728\u201cllvm\u201d\u4e2d","block_context":{"text":"llvm","link":"https:\/\/syaro.hotococoa.moe\/wordpress\/?cat=10"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/syaro.hotococoa.moe\/wordpress\/wp-content\/uploads\/2020\/04\/loop-terminology-guarded-loop.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/syaro.hotococoa.moe\/wordpress\/wp-content\/uploads\/2020\/04\/loop-terminology-guarded-loop.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/syaro.hotococoa.moe\/wordpress\/wp-content\/uploads\/2020\/04\/loop-terminology-guarded-loop.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/syaro.hotococoa.moe\/wordpress\/wp-content\/uploads\/2020\/04\/loop-terminology-guarded-loop.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":160,"url":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=160","url_meta":{"origin":67,"position":2},"title":"Android Studio\u8c03\u8bd5\u65f6\u5361\u5728Loaded module\u7684\u89e3\u51b3\u65b9\u6848","author":"Chino","date":"2018\u5e7411\u670821\u65e5","format":false,"excerpt":"\u4e4b\u524d\u7528Android Studio\u8c03\u8bd5app\u65f6\uff0c\u5728\u542f\u52a8\u8fc7\u7a0b\u4e2d\u603b\u662f\u5361\u5728Loaded module\u63d0\u793a\uff0c\u2026","rel":"","context":"\u5728\u201c\u8e29\u5751\u201d\u4e2d","block_context":{"text":"\u8e29\u5751","link":"https:\/\/syaro.hotococoa.moe\/wordpress\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":175,"url":"https:\/\/syaro.hotococoa.moe\/wordpress\/?p=175","url_meta":{"origin":67,"position":3},"title":"\u6210\u529f\u7f16\u8bd1\u4e86eel.is\u7684\u4ee3\u7801","author":"Chino","date":"2018\u5e7412\u670824\u65e5","format":false,"excerpt":"\u73b0\u5728\u53ef\u4ee5\u5728\u8fd9\u91cc\u67e5\u770b\u6700\u65b0\u8349\u6848\u7684\u5185\u5bb9\u4e86\uff0c\u4e4b\u540e\u4f1a\u5c1d\u8bd5\u7f16\u8bd1\u5404\u6b63\u5f0f\u53d1\u5e03\u7248\u672c\u7684\u6700\u540e\u8349\u6848","rel":"","context":"\u7c7b\u4f3c\u6587\u7ae0","block_context":{"text":"\u7c7b\u4f3c\u6587\u7ae0","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":11,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/syaro.hotococoa.moe\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}