constructor for initialization of 'b2World'

I am a new bee in Box2D. going thro' the RW tutorial.
now in my code, i wrote,
"_world = new b2World(gravity, doSleep);" //_world is a b2World pointer.
this line is giving error stated "error: Semantic Issue: No matching constructor for initialization of 'b2World' "
I am using cocos 2d version 2.0...dont know the proper version of Box2D...
Please help me with this....
Thanks in advance.... 🙂
The world constructor was changed to take only the gravity as a parameter. You can use SetAllowSleeping to change the sleeping behavior after you create the world.

btw this kind of question is easily answered by taking a quick look at the source code, or even Xcode's code completion should let you know... 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=8817