Code here states that the pool must be 42" off the ground. If not, then you need a fence, or something like I installed.
Glepage's looks compliant because the stone wall looks far enough away to not come into the picture. If a kid COULD easily jump from the wall into the pool, then a fence would be needed.
I did what I did because I did not want a fence.

Frank D.