Tag Archive for cpp

“modern CMake” – Slides

I’ve held a Presentation about “modern CMake” at the C++ Meetup in Wiesbaden a week ago and wanted to share the slides with the Internet. I try to highlight the parts of a CMake project which I consider as modern (I guess there is room for interpretation here) I give a small introduction to CMake…

cmakepp: Template Generation in CMake

Find it at http://github.com/toeb/cmakepp Download cmakepp standalone file here As with all my work I appreciate all feedback given and am particularly happy about virtual internet points 🙂 To the Post: While working on the documentation of cmakepp I grew wary of always doubling the documentation – one in the source code and a mirror…

Heterogeneous Package Search and Retrieval in CMake

Finding and Retrieving third party sources, tools and binaries is currently a hot subject for C++. There are quite a few solutions (biicode, cpm, hunter, …) Also there is github, bitbucket, source balls etc. Further there are many package managers for many different platforms which also can contain packages (apt-get, chocolatey, nuget, npm, pip, ….).…

Renameable Namespaces using the Preprocessor

Motivation If you are starting to work on a library and do not know exactly how your namespaces are going end up these macro helper are for you. I have written helpers that simplify using namespaces and lets you build up your namespaces with preprocessor defines. This allows you to quickly rename your namespaces which…

An Implementation of the Dynamic Object in C++

You can find my implementation at https://github.com/toeb/cppdynamic it is licensed under the MIT license. I’d be happy for feedback and or optimizations 🙂 Dynamic object are useful, especially in rapid prototyping, non-performance critical situations, and situations in which data/functions -bags are needed (non schema specific data). Also when serializing and deserializing dynamic objects can be…

dynamically calling “any” thing in C++

Extending upon boost’s any class which stores a type and a void ptr to any type of value, I created a callable version were you can assign any function, lambda, memberfunction etc. to the any and call it dynamically. This is a basic and important step for runtime reflection which I’m currently working on. Tell…

is_callable type trait

I’ve developed a type_trait for checking if a type is callable, ie has defined a single operator(). Also on ideone Tell me if you like it or if you know of a better version 😀 /// function traits for member functions // gives you the class_type, return_type and arguments tuple for any member function (const…