Only C corporations can do this [§1212(a)(1)]. For all other taxpayers (e.g., individuals, trusts, estates), any unused capital losses are carried forward to succeeding years [§1212(b)]. 

Capital loses can be carried forward indefinitely (i.e., until the taxpayer no longer exists such as death of an indivudal or liquidation of a corporation).