~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/option_context.cc

  • Committer: Brian Aker
  • Date: 2010-09-22 22:29:55 UTC
  • mto: (1787.3.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1789.
  • Revision ID: brian@tangent.org-20100922222955-cg1bddv4b72jwe31
Fix enum at being an intefer (which is what PG did, and it saves on
alignment issues).

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    "test", "--test.option=foo"
44
44
  };
45
45
 
46
 
  // Disable allow_guessing
47
 
  int style = po::command_line_style::default_style & ~po::command_line_style::allow_guessing;
48
 
 
49
 
  po::store(po::command_line_parser(2, (char **)options).style(style).
 
46
  po::store(po::command_line_parser(2, (char **)options).
50
47
            options(command_line_options).run(), vm);
51
48
  po::notify(vm);
52
49