Profile cover photo
Profile photo
Kenneth Ho

Post has attachment

Post has shared content
To read.
Interesting. I think assert should have been turned into a keyword before the introduction of static_assert. Then we could think about putting the static keyword in front of a bunch of other keywords like static assert, static if, static for, ... without introducing any more keywords!

Post has shared content

Post has attachment
Added two features to fp14::curry()
1. Uncurrying - fp14::uncurry
2. Helper for making sure calls are legit - fp15::callable_with()

#cpp #cplusplus #cpp14  

Post has shared content
[Global Notice] Earlier today the freenode infra team noticed an anomaly on a single IRC server. We have identified that this was indicative of the server being compromised by an unknown third party. We immediately started an investigation to map the extent of the problem and located similar issues with several other machines and have taken those offline. For now, we recommend that every change their NickServ password as a precaution. To do that, issue the command /msg NickServ set password YOURNEWPASSWORD (maximum length 79 characters), making sure / is the first character.

We'll issue more updates as WALLOPS and via social media!

Post has attachment

Post has attachment
Currying in C++14.

AFAIK, this is the first curry() implementation that supports generic (polymorphic) lambdas.

Obviously, it's not fully polished, but should be enough to play around with.

Post has attachment

Noticed a bug in libc++.

vector::__construct_at_end() lacks strong exception-safety guarantee, so do depending member functions that are required to provide strong exception-safety. In fact, it lacks any sort of exception-safety whatsoever. If you call v.resize(n) or v.insert(v.end(), first, last) for example and something throws, you are left with a vector in broken state.

Planning a patch.

Post has attachment
I used to assume all mainstream C++ compilers layout vtables in a way that maps to the declaration order of virtual functions in a class.

Apparently MSVC does it differently. [1] Perhaps it uses manged name for ordering?

One big disadvantage of not using the declaration order in vtable is that one can not safely add virtual functions to a leaf class and maintain backward compatibility. [2]


h/t +Chen-Yu Tsai for bringing this to my attention.

#cpp   #cplusplus
Wait while more posts are being loaded