Skip to content

Commit 4021375

Browse files
committed
Explain why StepInfo's assignment operator is deleted
Because I've seen this code to often, wondering why I shouldn't just delete this line. Turns out it is because of PR #128 which fixes #127.
1 parent ca6535d commit 4021375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cucumber-cpp/internal/step/StepManager.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class StepInfo : public boost::enable_shared_from_this<StepInfo> {
104104
Regex regex;
105105
const std::string source;
106106
private:
107+
// Shut up MSVC warning C4512: assignment operator could not be generated
107108
StepInfo& operator=(const StepInfo& other);
108-
109109
};
110110

111111

0 commit comments

Comments
 (0)