Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Move Implementation to Source File fails with C11

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
legalize Posted - Oct 19 2014 : 5:22:15 PM
class chess_board
{
public:
    chess_board(const std::pair<int, int>& white, const std::pair<int, int>& black)
        : white_{white},
        black_{black}
    {
        if (white == black) {
            throw std::domain_error("Both queens cannot occupy the same position.");
        }
    }

    chess_board()
    {}

    std::pair<int, int> white() const
    {
        return white_;
    }
    std::pair<int, int> black() const
    {
        return black_;
    }

private:
    const std::pair<int, int> white_ = std::make_pair(0, 3);
    const std::pair<int, int> black_ = std::make_pair(7, 3);
};


Perform Move Implementation to Source File on constructor and it only copies up to the first }, creating invalid syntax.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Nov 07 2014 : 09:52:03 AM
case=79737 is fixed in build 2052
accord Posted - Oct 20 2014 : 10:39:05 PM
I am seeing the same effect here. Thank you for the complete sample code.

case=79737

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000