If a city is bounded by the nearest margin of a navigable stream and an opposite municipal corporation is bounded by the nearest margin of the same stream, the boundaries of the city shall extend to the center line of the stream. Nothing under this section shall be construed to repeal a local or special law providing for a different boundary.