#include "variantmsg.h" #include using namespace std; using namespace boost::assign; int main () { typedef vec_t scores_by_quarter; typedef map_t team_score_map; typedef pair team_score; typedef pair matchup; typedef map_t matchup_map; team_score_map scores = list_of ("Detroit", list_of (14)(3)(2)(0)) ("Minnesota", list_of (7)(0)(0)(15)) ("Denver", list_of (20)(7)(0)(7)) ("New Orleans", list_of (0)(13)(0)(0)) ("San Francisco", list_of (0)(0)(3)(0)) ("Tampa Bay", list_of (7)(14)(7)(7)) /* ... */ ; matchup_map matchups = list_of ("Detroit", "Minnesota") ("Denver", "New Orleans") ("San Francisco", "Tampa Bay") /* ... */ ; map_t score_data; // Take *that*, you "football" freaks! score_data["date"] = date (2004, 11, 21); score_data["matchups"] = matchups; score_data["scores"] = scores; bencode encoder (cout); encoder (score_data); cout << endl; return 0; }