Adding const keyword for return type fixes programming error.