MissouriMRDT / Autonomy_Software

Implicit deletion of copy and move assignment constructors due to non-static const data member CXX-W2010
Anti-pattern
Minor
4 days ago14 days old
member 'ATOMIC_MEMORY_ORDER_METHOD' of type 'const std::memory_order' is const qualified
215        /////////////////////////////////////////
216        // Declare class constants.
217        /////////////////////////////////////////
218        const std::memory_order ATOMIC_MEMORY_ORDER_METHOD = std::memory_order_relaxed;219
220        /////////////////////////////////////////
221        // Declare private member variables.
member 'm_nMaxMetricsHistorySize' of type 'const unsigned long' is const qualified
 38        std::chrono::high_resolution_clock::time_point m_tLastUpdateTime;
 39
 40        // Define class constants.
 41        const long unsigned int m_nMaxMetricsHistorySize = 100; 42
 43        /******************************************************************************
 44         * @brief This method is used to calculate the IPS stats. Highest, lowest, and 1
member 'ClearWaypointsCallback' of type 'const std::function<void (const int &, const int &)>' is const qualified
194         * @author clayjay3 ([email protected])
195         * @date 2024-03-03
196         ******************************************************************************/
197        const std::function<void(const rovecomm::RoveCommPacket<uint8_t>&, const sockaddr_in&)> ClearWaypointsCallback =198            [this](const rovecomm::RoveCommPacket<uint8_t>& stPacket, const sockaddr_in& stdAddr)
199        {
200            // Not using this.
member 'AddObjectLegCallback' of type 'const std::function<void (const int &, const int &)>' is const qualified
167         * @author clayjay3 ([email protected])
168         * @date 2024-03-03
169         ******************************************************************************/
170        const std::function<void(const rovecomm::RoveCommPacket<double>&, const sockaddr_in&)> AddObjectLegCallback =171            [this](const rovecomm::RoveCommPacket<double>& stPacket, const sockaddr_in& stdAddr)
172        {
173            // Not using this.
member 'AddMarkerLegCallback' of type 'const std::function<void (const int &, const int &)>' is const qualified
140         * @author clayjay3 ([email protected])
141         * @date 2024-03-03
142         ******************************************************************************/
143        const std::function<void(const rovecomm::RoveCommPacket<double>&, const sockaddr_in&)> AddMarkerLegCallback =144            [this](const rovecomm::RoveCommPacket<double>& stPacket, const sockaddr_in& stdAddr)
145        {
146            // Not using this.