Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

  • Mood:
  • Music:

C++

BS 的书中 p.371,§14.4.6 "Exceptions in Constructors" 和附录 E.3.5 "Constructors and Invariants" 提到为了维护对象的完整性,应该使用异常,然而为了维护资源不会泄露,应该在异常处理中小心。觉得这 c++ 实在是麻烦死了 :( 今后的两年就要这样过了呢~~

两年后也许我会对这本书了如指掌
Tags: 小东西
Subscribe

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • #thotcon badge?

    [root@m4700 ~]# esptool write_flash 0x00000 /home/yuan/tracking/thotcon0x9/tc0x9.bin esptool.py v2.3.1 Connecting.... Detecting chip type...…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments