This is definitely a typo right?

This function from my book:

1
2
3
4
5
6
// Comparing two CBox objects - ordinary function version
bool Compare(CBox& box1, CBox& box2)
{
{
return box1.Volume() > box2.Volume();
}


The two { are definitely a typo correct?
yes. you only need one.
That is a typo. However, this example is perfectly valid C++ code:
1
2
3
int main()
{{{{{{{{
}}}}}}}}
Ok thanks

@LB That looks really cool lol
Topic archived. No new replies allowed.