bkrueger / mocasinns

MOnte-CArlo-SImulations - Neat'N'Simple
Other
4 stars 1 forks source link

Make the definition of ConfigurationSpace::serialize optional #42

Closed bkrueger closed 10 years ago

bkrueger commented 11 years ago

This can be done using the SFNINAE-construct testing whether this function is present at the actual configuration space and the enable_if [1] functionality of boost.

So the user can decide whether to use the serialization features of the library and only must bother with the serialization details if wanted.

[1] http://www.boost.org/doc/libs/1_53_0/libs/utility/enable_if.html