File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1623,17 +1623,17 @@ namespace ns {
16231623 class Person
16241624 {
16251625 std::string name_ ;
1626- jsoncons ::optional< std::string > socialSecurityNumber_ ;
1626+ std ::optional< std::string > socialSecurityNumber_ ;
16271627 public:
1628- Person(const std::string& name, const jsoncons ::optional< std::string > & socialSecurityNumber)
1628+ Person(const std::string& name, const std ::optional< std::string > & socialSecurityNumber)
16291629 : name_ (name), socialSecurityNumber_ (socialSecurityNumber)
16301630 {
16311631 }
16321632 std::string getName() const
16331633 {
16341634 return name_ ;
16351635 }
1636- jsoncons ::optional< std::string > getSsn() const
1636+ std ::optional< std::string > getSsn() const
16371637 {
16381638 return socialSecurityNumber_ ;
16391639 }
@@ -1645,14 +1645,14 @@ JSONCONS_ALL_CTOR_GETTER_NAME_TRAITS(ns::Person,
16451645 (getName, "name"),
16461646 (getSsn, "social_security_number",
16471647 JSONCONS_RDWR, jsoncons::always_true(),
1648- [ ] (const jsoncons ::optional< std::string > & unvalidated) {
1648+ [ ] (const std ::optional< std::string > & unvalidated) {
16491649 if (!unvalidated)
16501650 {
16511651 return unvalidated;
16521652 }
16531653 std::regex myRegex(("^(\\ d{9})$"));
16541654 if (!std::regex_match(* unvalidated, myRegex) ) {
1655- return jsoncons ::optional< std::string > ();
1655+ return std ::optional< std::string > ();
16561656 }
16571657 return unvalidated;
16581658 }
You can’t perform that action at this time.
0 commit comments