As Murray Rothbard taught, Dunoyer and (Charles)Comte had it right about the class struggle and Saint Simon screwed it up, with Marx and Bakunin riffing off of Saint Simon:
In short, Russell Kirk, who claims that Socialism was the heir of classical liberalism, and Ronald Hamowy, who sees Socialism as the heir of Conservatism, are both right; for the question is on what aspect of this confused centrist movement we happen to be focussing. Socialism, like Liberalism and against Conservatism, accepted the industrial system and the liberal goals of freedom, reason, mobility, progress, higher living standards the masses, and an end to theocracy and war; but it tried to achieve these ends by the use of incompatible, Conservative means: statism, central planning, communitarianism, etc. Or rather, to be more precise, there were from the beginning two different strands within Socialism: one was the Right-wing, authoritarian strand, from Saint-Simon down, which glorified statism, hierarchy, and collectivism and which was thus a projection of Conservatism trying to accept and dominate the new industrial civilization. The other was the Left-wing, relatively libertarian strand, exemplified in their different ways by Marx and Bakunin, revolutionary and far more interested in achieving the libertarian goals of liberalism and socialism: but especially the smashing of the State apparatus to achieve the "withering away of the State" and the "end of the exploitation of man by man." Interestingly enough, the very Marxian phrase, the "replacement of the government of men by the administration of things," can be traced, by a circuitous route, from the great French radical laissez-faire liberals of the early nineteenth century, Charles Comte (no relation to Auguste Comte) and Charles Dunoyer. And so, too, may the concept of the "class struggle"; except that for Dunoyer and Comte the inherently antithetical classes were not businessmen vs. workers, but the producers in society (including free businessmen, workers, peasants, etc.) versus the exploiting classes constituting, and privileged by, the State apparatus.4 Saint-Simon, at one time in his confused and chaotic life, was close to Comte and Dunoyer and picked up his class analysis from them, in the process characteristically getting the whole thing balled up and converting businessmen on the market, as well as feudal landlords and others of the State privileged, into "exploiters." Marx and Bakunin picked this up from the Saint-Simonians, and the result gravely misled the whole Left Socialist movement; for, then, in addition to smashing the repressive State, it became supposedly necessary to smash private capitalist ownership of the means of production. Rejecting private property, especially of capital, the Left Socialists were then trapped in a crucial inner contradiction: if the State is to disappear after the Revolution (immediately for Bakunin, gradually "withering" for Marx), then how is the "collective" to run its property without becoming an enormous State itself in fact even if not in name? This was a contradiction which neither the Marxists nor the Bakuninists were ever able to resolve.
(chart via Ninja Economics)