21 assert_sampled_allowed()
28 assert_sampled_forbidden()
try {
30 assert(
false &&
"Successful construction not expected.");
34 std::string const expected_msg{
"An attempt was made to create the type"};
35 assert(actual_msg.find(expected_msg) != std::string::npos);
42 assert_sampled_allowed<int>();
43 assert_sampled_allowed<std::vector<int>>();
44 assert_sampled_forbidden<Assns<int, double>>();
45 assert_sampled_forbidden<Assns<int, double, std::string>>();
46 assert_sampled_forbidden<Ptr<int>>();
47 assert_sampled_forbidden<PtrVector<int>>();
48 assert_sampled_forbidden<std::vector<Ptr<int>>>();
49 assert_sampled_forbidden<std::map<Ptr<int>,
Ptr<double>>>();
50 assert_sampled_forbidden<std::list<Ptr<int>>>();
51 assert_sampled_forbidden<std::vector<std::vector<std::vector<Ptr<int>>>>>();
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception