In order to approximate functions defined on the real line or on the real semiaxis by polynomials, we introduce some new Fourier-type operators, connected to the Fourier sums of generalized Freud or Laguerre orthonormal systems. We prove necessary and sufficient conditions for the boundedness of these operators in suitable weighted L p -spaces, with 1 < p < ∞. Moreover, we give error estimates in weighted L p and uniform norms.