- Timestamp:
- Apr 8, 2021, 3:14:56 PM (2 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 56c8b86
- Parents:
- e07b589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/thierry_delisle_PhD/code/readyQ_proto/relaxed_list.cpp
re07b589 r7530049d 691 691 692 692 for(const auto & n : nodes) { 693 local.valmax = max(local.valmax, size_t(n.value));694 local.valmin = min(local.valmin, size_t(n.value));693 local.valmax = std::max(local.valmax, size_t(n.value)); 694 local.valmin = std::min(local.valmin, size_t(n.value)); 695 695 } 696 696 … … 773 773 try { 774 774 arg = optarg = argv[optind]; 775 nnodes = st oul(optarg, &len);775 nnodes = std::stoul(optarg, &len); 776 776 if(len != arg.size()) { throw std::invalid_argument(""); } 777 777 } catch(std::invalid_argument &) { … … 792 792 try { 793 793 arg = optarg = argv[optind]; 794 nnodes = st oul(optarg, &len);794 nnodes = std::stoul(optarg, &len); 795 795 if(len != arg.size()) { throw std::invalid_argument(""); } 796 796 } catch(std::invalid_argument &) { … … 812 812 try { 813 813 arg = optarg = argv[optind]; 814 nnodes = st oul(optarg, &len);814 nnodes = std::stoul(optarg, &len); 815 815 if(len != arg.size()) { throw std::invalid_argument(""); } 816 816 nslots = nnodes; … … 823 823 try { 824 824 arg = optarg = argv[optind]; 825 nnodes = st oul(optarg, &len);825 nnodes = std::stoul(optarg, &len); 826 826 if(len != arg.size()) { throw std::invalid_argument(""); } 827 827 } catch(std::invalid_argument &) { … … 831 831 try { 832 832 arg = optarg = argv[optind + 1]; 833 nslots = st oul(optarg, &len);833 nslots = std::stoul(optarg, &len); 834 834 if(len != arg.size()) { throw std::invalid_argument(""); } 835 835 } catch(std::invalid_argument &) { … … 884 884 case 'd': 885 885 try { 886 duration = st od(optarg, &len);886 duration = std::stod(optarg, &len); 887 887 if(len != arg.size()) { throw std::invalid_argument(""); } 888 888 } catch(std::invalid_argument &) { … … 893 893 case 't': 894 894 try { 895 nthreads = st oul(optarg, &len);895 nthreads = std::stoul(optarg, &len); 896 896 if(len != arg.size()) { throw std::invalid_argument(""); } 897 897 } catch(std::invalid_argument &) { … … 902 902 case 'q': 903 903 try { 904 nqueues = st oul(optarg, &len);904 nqueues = std::stoul(optarg, &len); 905 905 if(len != arg.size()) { throw std::invalid_argument(""); } 906 906 } catch(std::invalid_argument &) {
Note: See TracChangeset
for help on using the changeset viewer.