id summary reporter owner description type status milestone component version severity resolution keywords cc 3326 struct tagging in constructor stops conditional construction without .swap call Andy Schneider Ion Gaztañaga "I'd like to do this: shared_memory_object shm_obj (isOwner ? create_only : open_only ,""shared_memory"" //name ,read_write //read-write mode ); but I don't seem to be able to because create_only and open_only are tag structs. Instead I end up with something like this: shared_memory_object shm; if (isOwner) { shared_memory_object shm_obj (...) shm_obj.swap (shm); } else { shared_memory_object shm_obj (...) shm_obj.swap (shm); } which isn't as clean imho. What's the rational for a tag struct rather than enum? " Bugs closed Boost 1.40.0 interprocess Boost 1.39.0 Cosmetic wontfix