boost-users [program options, tuple]
Hi i would like to know how to make program options play nicely with tuple.
int main( int ac, char* av[] )
{
namespace po = boost::program_options;
po::options_description desc("Allowed options");
std::vector<BigInteger> key_pair;
desc.add_options()
("generate", "generates a pair of key")
("secert", po::value(&key_pair)->multitoken(), "creates the share
secret key");
po::variables_map vm;
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);
try
{
if (vm.count("generate"))
{
BigInteger my_prime =
encryptcpw::random_prime<BigInteger>(&algocpw::Solovay_Stressen<BigInteger>,
16);
std::cout << "my prime: " << my_prime << "\n";
boost::tuple
participants (1)
-
chun ping wang