From cd0e7d81d111bfc38626f58859681a0b0cea160f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 24 Apr 2018 16:57:53 +1000 Subject: Feature [feature-requests:#1215]. Make Action move constructor noexcept and use default implementation. --- src/CellBuffer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 0e2c4f219..3e3ec3015 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -43,8 +43,7 @@ public: Action &operator=(const Action &other) = delete; Action &operator=(const Action &&other) = delete; // Move constructor allows vector to be resized without reallocating. - // Could use =default but MSVC 2013 warns. - Action(Action &&other); + Action(Action &&other) noexcept = default; ~Action(); void Create(actionType at_, Sci::Position position_=0, const char *data_=0, Sci::Position lenData_=0, bool mayCoalesce_=true); void Clear(); -- cgit v1.2.3