People in same-sex relationships in South Carolina should get the same legal protections against domestic violence as heterosexual couples, the state's highest court ruled Wednesday, deeming a portion of the state's domestic violence law unconstitutional.

The court was asked to weigh in after a woman tried to get a protective order against her former fiancée, also a woman, and was denied.

Current law defines "household members" as a spouse, former spouse, people with a child in common, or men and women who are or have lived together. It does not include unmarried same-sex couples.

Acting Justice Costa Pleicones, who wrote the majority opinion, said during oral arguments in March 2016 that he felt the law was "pretty clearly unconstitutional in its discriminatory impact upon same-sex couples."

In his opinion, Pleicones pointed out lawmakers have over the years addressed the definition of "household members" as covered under domestic violence protections in 1994, amending the language from "persons" living together to "male and female." In 2015, during a massive overhaul of South Carolina's criminal domestic violence law, legislators made changes including increasing penalties for offenders but left the gender-based definition intact.

The U.S. Constitution's Equal Protection Clause, the court wrote, states, "No state shall ... deny any person within its jurisdiction the equal protection of the laws," such as a benefit offered to one class of person but not others.

"In this case, we cannot find a reasonable basis for providing protection to one set of domestic violence victims - unmarried, cohabiting or formerly cohabiting, opposite-sex couples - while denying it to others," the court wrote.

Other states have addressed this issue since the U.S. Supreme Court's 2015 decision legalizing gay marriage nationwide. The Ohio Supreme Court in 2016 adopted the use of gender-neutral references in family court cases. California and Massachusetts proactively changed language in their laws.