This describes the action of a boat that rolls over, often as a result of a strong wind gust. Today the expression is often used in reference to a person being emotionally ‘turned over’ or upset as well as a reference to a person dying. A nautical term that has now become part of everyday language
