Story highlights Mitt Romney warned of "demagogues" in a commencement speech in Indiana Saturday

Romney's comment was a thinly veiled shot at Donald Trump and Bernie Sanders

Washington (CNN) Mitt Romney on Saturday took a thinly veiled shot at Donald Trump and Bernie Sanders, warning against "demagogues" in a commencement address.

"Demagogues on the right and the left draw upon our darker angels, scapegoating immigrants and Muslims or bankers and business people," Romney told graduating students in an otherwise politics-free speech at Trine University in Angola, Indiana.

He didn't name Trump or Sanders. But the former Massachusetts governor and 2012 GOP nominee was clearly referencing Trump's proposals to ban Muslims from entering the United States and build a wall along the U.S.-Mexico border, as well as Sanders' consistent criticism of Wall Street.

The speech comes two days after Romney quietly met with The Weekly Standard editor Bill Kristol, a conservative movement bulwark who is attempting to court a third-party candidate to oppose Trump and Hillary Clinton in November.

He made no reference to that meeting, but did say: "Almost nothing I've done in my career was planned in advance. I could hardly have predicted I would get into politics."

Read More