
技术C++
peterpei_
这个作者很懒,什么都没留下…
展开
-
C++的指针的坑:“new[]的指针需要delete[]”和“子类指针可以转父类指针”的两条规则成功的冲突到了一起
原文地址:http://www.cppblog.com/vczh/archive/2013/04/27/199765.htmlposted on 2013-04-27 17:24 陈梓瀚(vczh) C++的指针的坑。剩下的坑留到下一篇文章里面。下面要讲的这个坑,如果不是在粉丝群里面被问了,我还不知道有人会这么做:class Base{ ...}转载 2013-04-30 13:33:23 · 1500 阅读 · 0 评论 -
Making Pimpl Easy
The Pimpl technique is a useful way to minimize coupling, and separate interface and implementation. Here's a way to simplify Pimpl deployment.By Vladimir BatovJanuary 25, 2008URL:http://drdob转载 2014-09-22 10:45:25 · 1025 阅读 · 0 评论 -
深入浅出SFINAE
网上看到一篇介绍SFINAE的文章,自己听说过很多遍,但都不太确定到底是个啥东西。作者的文章写的很好,就拿来翻译一下练练手。原作者说看了Louis Dionne 的演讲"C++ Metaprogramming: A Paradigm Shift",对其中的Boost.Hana库中的 is_valid 特性特别感兴趣。应该是有感而发,有了此文。如果不知道啥是SFINAE,并且想知道,那么就去看原文吧。原文写的很好,代码里的注释很多,受益匪浅!翻译 2015-12-28 19:25:45 · 9374 阅读 · 2 评论 -
A Crash Course on the Depths of Win32™ Structured Exception Handling
At its heart, Win32 structured exception handling is an operating system-provided service. All the docs you're likely to find about SEH describe one particular com-piler's runtime library wrapping aro转载 2016-04-08 10:50:04 · 899 阅读 · 0 评论 -
Finding where unmanaged exceptions came from
原文链接:https://blogs.msdn.microsoft.com/jmstall/2005/01/18/finding-where-unmanaged-exceptions-came-from/Sometimes you’re looking at the callstack that’s in a handler after an exception was thrown. This i转载 2016-06-26 16:17:17 · 474 阅读 · 0 评论 -
QM Bites – Order Your Includes (Twice Over)
Header includes can be a shambles. Matthew Wilson encourages us to bring some order to the chaos. TL;DR Order includes in groups of descending specificity and lexicographically within groupsBite Con转载 2016-06-30 13:37:11 · 728 阅读 · 0 评论 -
Use UMDH to identify memory leak problem
Use UMDH to identify memory leak problem原文链接:https://www.thinksaas.cn/group/topic/634356/We sometimes got memory leak problem, and we need to find the leaked memory, Here is a usful tool from MS, UMDH,转载 2017-08-29 17:12:11 · 468 阅读 · 0 评论 -
Fold expressions
Fold expressionsWith C++11 we got variadic templates which is a great feature, especially if you want to work with a variable number of input parameters to a function. For example, previously (pre C++1转载 2017-09-25 12:09:50 · 457 阅读 · 0 评论 -
Detection Idiom - A Stopgap for Concepts
on September 14, 2017 under c++【原文链接】https://blog.tartanllama.xyz/detection-idiom/Concepts is a proposed C++ feature which allows succinct, expressive, and powerful constraining of templates. They have转载 2017-09-25 12:20:22 · 507 阅读 · 0 评论