Skip to content

Tag Archives: struct initialization

cojson tutorial

1. Getting Started To start using cojson parser/generator you need to define the structure of your JSON object by mapping its elements to cojson elements, bind them to members of your C++ class (see Section 2), implement the interfaces for the data streams you have, and build cojson library with your application (see Section 3).

Implementing C++ designated initializers with templetized constructor

C99 facilitates support designated initializers: I found this handy feature very useful, since it does not require remembering order of the struct fields and simplifies refactoring and/or evolving of the existing code. C++0X and C++1X does not allow this (please follow this link for more details) This page has inspired me on a practical solution […]

This blog is protected by dr Dave\'s Spam Karma 2: 197 Spams eaten and counting...