You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by zwoop <gi...@git.apache.org> on 2016/12/31 02:08:05 UTC
[GitHub] trafficserver issue #1287: CID 1367519: Low impact quality (MISSING_MOVE_ASS...
GitHub user zwoop opened an issue:
https://github.com/apache/trafficserver/issues/1287
CID 1367519: Low impact quality (MISSING_MOVE_ASSIGNMENT): ts/ink_memory.h
```
*** CID 1367519: Low impact quality (MISSING_MOVE_ASSIGNMENT)
/lib/ts/ink_memory.h: 242 in ()
236 assignment operator. This will be easier with C++ eleventy.
237
238 */
239
240 template <typename TRAITS ///< Traits object.
241 >
CID 1367519: Low impact quality (MISSING_MOVE_ASSIGNMENT)
Class "ats_scoped_resource<detail::SCOPED_MALLOC_TRAITS<char> >" may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster.
242 class ats_scoped_resource
243 {
244 public:
245 typedef TRAITS Traits; ///< Make template arg available.
246 typedef typename TRAITS::value_type value_type; ///< Import value type.
247 typedef ats_scoped_resource self; ///< Self reference type.
```
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---