Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Move Implementation to Source File fails with C11
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

legalize
Tomato Guru

USA
119 Posts

Posted - Oct 19 2014 :  5:22:15 PM  Show Profile  Reply with Quote
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.

http://legalizeadulthood.wordpress.com

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 20 2014 :  10:39:05 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the complete sample code.

case=79737
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 07 2014 :  09:52:03 AM  Show Profile  Reply with Quote
case=79737 is fixed in build 2052
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000