declarations of static const objects not working