<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cpp on pg999w&#39;s blog</title>
    <link>https://vpssg1.zyk999.top/tags/cpp/</link>
    <description>Recent content in Cpp on pg999w&#39;s blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 14 Nov 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://vpssg1.zyk999.top/tags/cpp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rust 和 C&#43;&#43; 的对象生命管理</title>
      <link>https://vpssg1.zyk999.top/post/rust-cpp-object-management/</link>
      <pubDate>Tue, 14 Nov 2023 00:00:00 +0000</pubDate>
      <guid>https://vpssg1.zyk999.top/post/rust-cpp-object-management/</guid>
      <description>&lt;p&gt;Rust 和 C++ 的对象都是值语义，都采用了 RAII 惯用法。所以他们需要处理类似的对象生命周期问题：需要专门的代码来处理对象的初始化，复制和析构。下面进行一个比较，我们能够看到两种语言之间内在的对称性。&lt;/p&gt;</description>
    </item>
    <item>
      <title>C&#43;&#43; 每三年才解决一点点问题</title>
      <link>https://vpssg1.zyk999.top/post/c&#43;&#43;-template-constraint/</link>
      <pubDate>Mon, 30 Nov 2020 00:00:00 +0000</pubDate>
      <guid>https://vpssg1.zyk999.top/post/c&#43;&#43;-template-constraint/</guid>
      <description>&lt;p&gt;或：怎样优雅地给 C++ 模板添加约束？&lt;/p&gt;</description>
    </item>
    <item>
      <title>Docker 搭建 RoboMaster RoboRTS 框架构建环境</title>
      <link>https://vpssg1.zyk999.top/post/ros-docker/</link>
      <pubDate>Sun, 02 Aug 2020 00:00:00 +0000</pubDate>
      <guid>https://vpssg1.zyk999.top/post/ros-docker/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/RoboMaster/RoboRTS&#34;&gt;RoboRTS&lt;/a&gt; 框架用于大疆的 RoboMaster ICRA 人工智能挑战赛。其构建环境基于 &lt;a href=&#34;https://www.ros.org/&#34;&gt;ROS&lt;/a&gt;，在非 Ubuntu/CentOS 的 Linux 机器上面安装较为困难。于是我们采用基于 docker 的构建方案。&lt;/p&gt;</description>
    </item>
    <item>
      <title>从 C&#43;&#43; 的错误处理说起</title>
      <link>https://vpssg1.zyk999.top/post/c&#43;&#43;-p0709/</link>
      <pubDate>Thu, 16 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://vpssg1.zyk999.top/post/c&#43;&#43;-p0709/</guid>
      <description>&lt;p&gt;&lt;strong&gt;错误处理&lt;/strong&gt;是一个非常重要的软件工程问题。对软件中出现的非致命错误的不当处理，是几乎所有的灾难性系统故障的诱因。&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; 编程语言往往需要提供一些用于错误处理的语言设施，这些设施反过来会影响项目中错误处理的方式。不同的语言错误处理方式不同。例如 Java 采用基于 try-throw-catch 语法的异常机制，而 Go 语言则选择手动检测函数返回的 &lt;code&gt;error&lt;/code&gt; 对象。一个令人惊讶的事实是，C++ 到现在还没有一个被广泛接受的错误处理方式。&lt;/p&gt;</description>
    </item>
    <item>
      <title>constexpr string</title>
      <link>https://vpssg1.zyk999.top/post/constexpr-string/</link>
      <pubDate>Thu, 19 Dec 2019 00:00:00 +0000</pubDate>
      <guid>https://vpssg1.zyk999.top/post/constexpr-string/</guid>
      <description>&lt;p&gt;按照 &lt;a href=&#34;https://akrzemi1.wordpress.com/2017/06/28/compile-time-string-concatenation/&#34;&gt;Andrzej&amp;rsquo;s C++ blog&lt;/a&gt; 里这篇文章的思路，我实现了一个编译期的字符串拼接：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
