File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -75,24 +75,23 @@ template <typename T> class optional {
7575 return *this ;
7676 }
7777
78- optional &operator =(T &&Value){
78+ optional &operator =(T &&Value) {
7979 if (has_value ())
8080 reinterpret_cast <T *>(Storage)->~T ();
8181 ContainsValue = true ;
8282 new (Storage) T (std::move (Value));
8383 return *this ;
8484 }
8585
86- optional &operator =(const T &Value){
86+ optional &operator =(const T &Value) {
8787 if (has_value ())
8888 reinterpret_cast <T *>(Storage)->~T ();
8989 ContainsValue = true ;
9090 new (Storage) T (Value);
9191 return *this ;
9292 }
9393
94- template <typename U>
95- optional &operator =(const std::optional<U> &Other) {
94+ template <typename U> optional &operator =(const std::optional<U> &Other) {
9695 if (has_value ())
9796 reinterpret_cast <T *>(Storage)->~T ();
9897 ContainsValue = Other;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const optional<SubmitPostProcessF> &SubmissionInfo::PostProcessorFunc() const {
3232 return impl->MPostProcessorFunc ;
3333}
3434
35- std::shared_ptr<detail::queue_impl> & SubmissionInfo::SecondaryQueue () {
35+ std::shared_ptr<detail::queue_impl> &SubmissionInfo::SecondaryQueue () {
3636 return impl->MSecondaryQueue ;
3737}
3838
You can’t perform that action at this time.
0 commit comments