Tag Archives: spirit

Boost Fusion Adapt.Struct Part 2 – A Complete Example

The fusion example cpp and hpp files below build with boost 1.47.0 g++ 4.6.3/4.5.1 (and boost 1.51.0, g++ 4..4.6). It is a complete example derived from my earlier explorative examples. The reason we have this code is discussed in my … Continue reading

Posted in All, C/C++, Methods, Software | Tagged , , , , | Leave a comment

Boost Fusion and Fusion.Adapt.Struct Example

The fusion example cpp files below build with boost 1.47.0 g++ 4.6.3 (and boost 1.35.0, g++ 4..4.6). Refer to my earlier C++ reflection post for further details. (A example of boost struct serializer, and the more generic example behind it). … Continue reading

Posted in All, C/C++, Methods, Software | Tagged , , , , | 2 Comments

Boost Patch for Build with GCC 4.6

Late GCC versions implemented active evaluation which evaluates some code in older boost libraries those are never evaluated. Thus it causes errors. The patch below shows an example of fixing them for spirit 1.8.5.

Posted in All, C/C++ | Tagged , , , | Leave a comment

JSON Data Exchange Format for Improved Software Development Productivity

Software productivity after all is about making the job simple for programmers. For one, the data exchanged between software components should be human-readable, machine readable, and automatically generated and consumed. XML once was supposed to take that role. Unfortunately XML … Continue reading

Posted in All, C/C++, Methods, Tools | Tagged , , , , , , , | Leave a comment

Self-Identified Type of Data in C++ Using Json-Spirit

Due to the lack of reflection in C++, the type of a data container (e.g. a variable or object) usually needs to be determined by the programmer who writes the code at design/coding time. Template is a way of parameterize … Continue reading

Posted in All, C/C++, Methods, Tools | Tagged , , , , , | 1 Comment